Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit c302993

Browse files
authored
Test on PHP 8.1
1 parent 0a3365c commit c302993

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,18 @@ jobs:
1010
if: "!contains(github.event.head_commit.message, '[ci skip]')"
1111
strategy:
1212
matrix:
13-
include:
14-
- php: 8.0.12
15-
pthreads-version: 4213ce7dcdc2cf1d71d63e59950e33144220dfdb
13+
php: [8.0.22, 8.1.9]
1614

1715
name: PHP ${{ matrix.php }}
1816
runs-on: ubuntu-20.04
1917
steps:
2018
- uses: actions/checkout@v2
2119

22-
- name: Restore PHP build cache
23-
id: php-build-cache
24-
uses: actions/cache@v2
20+
- name: Setup PHP
21+
uses: pmmp/setup-php-action@82a44d659bf5046612c69f036af3e14dc32e3fa8
2522
with:
26-
path: ${{ github.workspace }}/php
27-
key: php-build-${{ matrix.php }}-pthreads-${{ matrix.pthreads-version }}-
28-
29-
- name: Compile PHP
30-
if: steps.php-build-cache.outputs.cache-hit != 'true'
31-
run: |
32-
git clone https://github.com/php-build/php-build.git
33-
cd php-build
34-
./install-dependencies.sh
35-
echo '"pthreads",,"https://github.com/pmmp/pthreads.git",,,"extension",' >> share/php-build/extension/definition
36-
export CFLAGS="$CFLAGS -march=x86-64"
37-
export CXXFLAGS="$CXXFLAGS -march=x86-64"
38-
PHP_BUILD_INSTALL_EXTENSION='pthreads=@${{ matrix.pthreads-version }}' PHP_BUILD_ZTS_ENABLE=on ./bin/php-build "${{ matrix.php }}" "$GITHUB_WORKSPACE/php"
39-
40-
- name: "Install cached PHP's dependencies"
41-
if: steps.php-build-cache.outputs.cache-hit == 'true'
42-
run: sudo apt update && sudo apt install libzip5
43-
44-
- name: Prefix PHP to PATH
45-
run: echo $GITHUB_WORKSPACE/php/bin >> $GITHUB_PATH
23+
php-version: ${{ matrix.php }}
24+
install-path: "./bin"
4625

4726
- name: Cache Composer packages
4827
id: composer-cache

0 commit comments

Comments
 (0)