Skip to content

Commit 113b847

Browse files
authored
修复测试 (#702)
1 parent 82e53de commit 113b847

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/php.dockerfile

+9-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG SWOOLE_VERSION
88
COPY script/ /tmp/script
99

1010
RUN set -eux \
11-
&& apt-get update && apt-get -y install procps libpq-dev unzip git libzip-dev libevent-dev libssl-dev libicu-dev libc-ares-dev libcurl4-openssl-dev unixodbc-dev libsqlite3-dev \
11+
&& apt-get update && apt-get -y install procps libpq-dev unzip git libzip-dev libevent-dev libssl-dev libicu-dev libc-ares-dev libcurl4-openssl-dev unixodbc-dev libsqlite3-dev libbrotli-dev \
1212
&& docker-php-ext-install -j$(nproc) bcmath mysqli pdo_mysql pdo_pgsql pcntl sockets intl zip \
1313
&& (php --ri redis || (pecl install redis && docker-php-ext-enable redis)) \
1414
&& pecl install inotify \
@@ -18,7 +18,13 @@ RUN set -eux \
1818
&& pecl install apcu \
1919
&& docker-php-ext-enable apcu \
2020
&& curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && chmod +x /usr/bin/composer \
21-
&& curl -L -o swoole.tar.gz https://github.com/swoole/swoole-src/archive/${SWOOLE_VERSION}.tar.gz && mkdir -p swoole && tar -xzf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && ((stat ./make.sh && ./make.sh) || (stat ./scripts/make.sh && ./scripts/make.sh)) && cd - && docker-php-ext-enable swoole \
21+
&& curl -L -o swoole.tar.gz https://github.com/swoole/swoole-src/archive/${SWOOLE_VERSION}.tar.gz && mkdir -p swoole && tar -xzf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && ((stat ./make.sh && ./make.sh) || (phpize && ./configure --enable-openssl \
22+
--enable-sockets \
23+
--enable-mysqlnd \
24+
--enable-swoole-curl \
25+
--enable-cares \
26+
--enable-swoole-pgsql \
27+
--with-swoole-odbc=unixODBC,/usr \
28+
--enable-swoole-sqlite && make -j install)) && cd - && docker-php-ext-enable swoole \
2229
&& bash /tmp/script/swoole_postgresql.sh ${POSTGRESQL_VERSION} \
23-
&& bash /tmp/script/hprose.sh \
2430
&& echo "zend_extension=opcache.so" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ jobs:
313313
# MacOS Arm64 下需要下面的修复,否则无法编译成功
314314
- name: Fix include
315315
run: |
316-
sudo ln -s $(brew --prefix pcre2)/include/pcre2.h /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
316+
sudo mkdir -p /usr/local/include
317+
sudo ln -s $(brew --prefix pcre2)/include/pcre2.h /usr/local/include/
317318
- name: Get Openssl Dir
318319
id: opecssl-dir
319320
run: echo "path=$(brew --prefix [email protected])" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)