Merge pull request #2912 from bestlong/github-ci-workspace
GitHub CI | workspace
This commit is contained in:
commit
9cd34a1cfb
|
@ -23,7 +23,7 @@ jobs:
|
||||||
PHP_VERSION: ${{ matrix.php_version }}
|
PHP_VERSION: ${{ matrix.php_version }}
|
||||||
run: |
|
run: |
|
||||||
cp env-example .env
|
cp env-example .env
|
||||||
sed -i -- '202,274s/=false/=true/g' .env
|
sed -i -- '99,274s/=false/=true/g' .env
|
||||||
sed -i -- 's/GNUPG=false/GNUPG=true/g' .env
|
sed -i -- 's/GNUPG=false/GNUPG=true/g' .env
|
||||||
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
|
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
|
||||||
sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
|
sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
|
||||||
|
@ -36,6 +36,8 @@ jobs:
|
||||||
sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
|
sed -i -- 's/MSSQL=true/MSSQL=false/g' .env
|
||||||
sed -i -- 's/MEMCACHED=true/MEMCACHED=false/g' .env
|
sed -i -- 's/MEMCACHED=true/MEMCACHED=false/g' .env
|
||||||
sed -i -- 's/OCI8=true/OCI8=false/g' .env
|
sed -i -- 's/OCI8=true/OCI8=false/g' .env
|
||||||
|
sed -i -- 's/IONCUBE=true/IONCUBE=false/g' .env
|
||||||
|
sed -i -- 's/V8JS=true/V8JS=false/g' .env
|
||||||
docker-compose build ${{ matrix.service }}
|
docker-compose build ${{ matrix.service }}
|
||||||
|
|
||||||
build-other:
|
build-other:
|
||||||
|
|
|
@ -307,7 +307,7 @@ RUN set -eux; \
|
||||||
if [ ${INSTALL_SWOOLE} = true ]; then \
|
if [ ${INSTALL_SWOOLE} = true ]; then \
|
||||||
# Install Php Swoole Extension
|
# Install Php Swoole Extension
|
||||||
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
||||||
pecl install swoole-2.0.11; \
|
pecl install swoole-2.0.10; \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
pecl install swoole-4.3.5; \
|
pecl install swoole-4.3.5; \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
||||||
|
|
|
@ -588,20 +588,17 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
ARG INSTALL_SWOOLE=false
|
ARG INSTALL_SWOOLE=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
||||||
# Install Php Swoole Extension
|
# Install Php Swoole Extension
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
||||||
pecl -q install swoole-2.0.11; \
|
pecl install swoole-2.0.10; \
|
||||||
else \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
|
pecl install swoole-4.3.5; \
|
||||||
echo '' | pecl install swoole-4.3.5; \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
||||||
|
pecl install swoole-4.5.11; \
|
||||||
else \
|
else \
|
||||||
if [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \
|
pecl install swoole; \
|
||||||
echo '' | pecl install swoole-4.6.0; \
|
fi; \
|
||||||
else \
|
fi; \
|
||||||
echo '' | pecl install swoole; \
|
|
||||||
fi \
|
|
||||||
fi \
|
|
||||||
fi && \
|
|
||||||
echo "extension=swoole.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini && \
|
echo "extension=swoole.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-swoole.ini \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-swoole.ini \
|
||||||
&& php -m | grep -q 'swoole' \
|
&& php -m | grep -q 'swoole' \
|
||||||
|
@ -1529,7 +1526,7 @@ RUN if [ ${INSTALL_GIT_PROMPT} = true ]; then \
|
||||||
ARG INSTALL_XMLRPC=false
|
ARG INSTALL_XMLRPC=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_XMLRPC} = true ]; then \
|
RUN if [ ${INSTALL_XMLRPC} = true ]; then \
|
||||||
docker-php-ext-install xmlrpc \
|
apt-get install -yqq php${LARADOCK_PHP_VERSION}-xmlrpc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue