Skip to content

Commit 7c1572f

Browse files
authored
Merge pull request #55 from arnaud-lb/php8.1build
Check against php 8.1
2 parents afda266 + 88b8b61 commit 7c1572f

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
strategy:
1313
matrix:
1414
include:
15+
- php: '8.1.0alpha2'
16+
tag: 'php-8.1.0alpha2'
17+
os: 'ubuntu-20.04'
18+
expect_native: 1
19+
experimental: 1
20+
1521
- php: '8.0.0'
1622
os: 'ubuntu-20.04'
1723
expect_native: 1
@@ -32,6 +38,7 @@ jobs:
3238
continue-on-error: ${{ !!matrix.experimental }}
3339
env:
3440
PHP_VERSION: ${{ matrix.php }}
41+
PHP_TAG: ${{ matrix.tag }}
3542
MEMORY_CHECK: ${{ matrix.memcheck }}
3643
WERROR: ${{ matrix.werror }}
3744
MEMPROF_EXPECT_NATIVE_TRACKING: ${{ matrix.expect_native }}

.github/workflows/test/build-php.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@ PREFIX="$HOME/php"
1515
if ! [ -f "$HOME/build-cache/php/$PREFIX/bin/php" ]; then
1616
echo "PHP build is not cached"
1717

18-
wget https://secure.php.net/distributions/php-${PHP_VERSION}.tar.bz2
19-
tar xjf php-${PHP_VERSION}.tar.bz2
20-
cd php-${PHP_VERSION}
18+
if [ -z "$PHP_TAG" ]; then
19+
wget https://secure.php.net/distributions/php-${PHP_VERSION}.tar.bz2
20+
tar xjf php-${PHP_VERSION}.tar.bz2
21+
cd php-${PHP_VERSION}
22+
else
23+
git clone --depth 1 --branch "$PHP_TAG" https://github.com/php/php-src.git
24+
cd php-src
25+
26+
sudo apt-get -y install re2c
27+
fi
28+
29+
if ! [ -f "configure" ]; then
30+
./buildconf --force
31+
fi
2132

2233
PHP_BUILD_FLAGS="--prefix=$PREFIX --disable-all --enable-cli --enable-cgi --with-config-file-scan-dir=$PREFIX/etc/php --with-zlib --enable-debug"
2334

0 commit comments

Comments
 (0)