From 4ce2643bdbfedf113520871129bffad56d8bc90d Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 22 Feb 2021 12:16:23 +0700 Subject: [PATCH] [ticket/16711] Fix PHP 8.1 builds PHPBB3-16711 --- .github/setup-webserver.sh | 10 ++++++++-- .github/workflows/tests.yml | 6 ++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/setup-webserver.sh b/.github/setup-webserver.sh index 0ee15ce061..043d3d6d88 100755 --- a/.github/setup-webserver.sh +++ b/.github/setup-webserver.sh @@ -28,9 +28,15 @@ NGINX_PHP_CONF="$DIR/nginx-php.conf" PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION" PHP_FPM_CONF="$DIR/php-fpm.conf" -if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" == '8.1' ] && [ -f "/usr/bin/php-fpm" ] +if [ "$PHP_VERSION" == '8.1' ] then - PHP_FPM_BIN="/usr/bin/php-fpm" + if [ -f "/usr/sbin/php-fpm8.0" ] + then + PHP_FPM_BIN="/usr/sbin/php-fpm8.0" + elif [ ! -f $PHP_FPM_BIN ] && [ -f "/usr/bin/php-fpm" ] + then + PHP_FPM_BIN="/usr/bin/php-fpm" + fi fi if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" != '8.1' ] diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1bba64af8b..c72abf2f36 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -123,8 +123,8 @@ jobs: db: "mysql:8.0" - php: '8.0' db: "mysql:5.7" - # - php: '8.1' ## Disabled since currently unstable - # db: "mysql:5.7" + - php: '8.1' + db: "mysql:5.7" name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }} @@ -152,7 +152,6 @@ jobs: ports: - 6379:6379 - steps: - name: Checkout repository uses: actions/checkout@v2 @@ -272,7 +271,6 @@ jobs: ports: - 6379:6379 - steps: - name: Checkout repository uses: actions/checkout@v2