From 5fbeeca3c8250c839f9f0616c5e8a299f59fd9b1 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Mon, 15 Nov 2021 15:49:38 +0100 Subject: [PATCH] Download PHP 8.1 from https://downloads.php.net/~patrickallaert/ (#472) It's the official pre-release location. See https://www.php.net/archive/2021.php#2021-10-28-2 --- .github/workflows/test.yml | 3 +++ .github/workflows/test/build-php.sh | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5e35c8e..c5d7841e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,6 +60,9 @@ jobs: librdkafka: 'v0.11.6' - php: '7.0.0' librdkafka: 'v0.11.6' + - php: '8.1.0RC6' + librdkafka: 'master' + experimental: true - php: '8.0.0' librdkafka: 'master' experimental: true diff --git a/.github/workflows/test/build-php.sh b/.github/workflows/test/build-php.sh index d23f9fad..810f50d7 100755 --- a/.github/workflows/test/build-php.sh +++ b/.github/workflows/test/build-php.sh @@ -8,8 +8,12 @@ fi if ! [ -f ~/build-cache/php/usr/local/bin/php ]; then echo "PHP build is not cached" - - wget https://secure.php.net/distributions/php-${PHP_VERSION}.tar.bz2 + + case $PHP_VERSION in + "8.1"*) wget https://downloads.php.net/~ramsey/php-${PHP_VERSION}.tar.bz2 ;; + *) wget https://secure.php.net/distributions/php-${PHP_VERSION}.tar.bz2 ;; + esac + tar xjf php-${PHP_VERSION}.tar.bz2 cd php-${PHP_VERSION}