File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
matrix :
14
14
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
+
15
21
- php : ' 8.0.0'
16
22
os : ' ubuntu-20.04'
17
23
expect_native : 1
32
38
continue-on-error : ${{ !!matrix.experimental }}
33
39
env :
34
40
PHP_VERSION : ${{ matrix.php }}
41
+ PHP_TAG : ${{ matrix.tag }}
35
42
MEMORY_CHECK : ${{ matrix.memcheck }}
36
43
WERROR : ${{ matrix.werror }}
37
44
MEMPROF_EXPECT_NATIVE_TRACKING : ${{ matrix.expect_native }}
Original file line number Diff line number Diff line change @@ -15,9 +15,20 @@ PREFIX="$HOME/php"
15
15
if ! [ -f " $HOME /build-cache/php/$PREFIX /bin/php" ]; then
16
16
echo " PHP build is not cached"
17
17
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
21
32
22
33
PHP_BUILD_FLAGS=" --prefix=$PREFIX --disable-all --enable-cli --enable-cgi --with-config-file-scan-dir=$PREFIX /etc/php --with-zlib --enable-debug"
23
34
You can’t perform that action at this time.
0 commit comments