-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.02 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on: push
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3' ]
h3: [ '3.7.2' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout H3 lib
uses: actions/checkout@v3
with:
repository: uber/h3
ref: v${{ matrix.h3 }}
path: h3-lib
- name: Build H3 lib
working-directory: h3-lib
run: |
cmake -DBUILD_SHARED_LIBS=ON .
make
sudo make install
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Build extension
run: |
phpize
./configure --with-h3
make
sudo make install
- name: Run tests
run: |
export NO_INTERACTION=1
export REPORT_EXIT_STATUS=1
export TEST_PHP_EXECUTABLE=$(which php)
php run-tests.php --show-diff -d extension=h3.so ./tests/*.phpt