forked from amphp/ext-uv
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 962 Bytes
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
tests:
name: Tests (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 8.2
- 8.1
- 8.0
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: |
# install 'libuv'
mkdir libuv
curl -L https://github.com/libuv/libuv/archive/v1.6.1.tar.gz | tar xzf -
cd libuv-1.6.1 && ./autogen.sh && ./configure --prefix=$(readlink -f `pwd`/../libuv) && make && make install
cd ..
# install 'php-uv'
phpize && ./configure --with-uv=$(readlink -f `pwd`/libuv)
make
sudo make install
echo "extension = uv.so" >> $(php -r 'echo php_ini_loaded_file();')
- run: php run-tests.php -p `which php` --offline --show-diff --set-timeout 120