mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
36 lines
962 B
YAML
36 lines
962 B
YAML
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
|