feature(sanitizers): adding address and undefined sanitizers to CMake #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |