Update libui-ng #29
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: | |
CI: | |
name: CI (PHP ${{ matrix.php }} on ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
php: | |
- 8.2 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
ini-values: extension=ardillo | |
- name: Fetch libui-ng | |
run: git submodule update --init | |
- name: Build extension | |
run: | | |
sudo python3 -m pip install --upgrade pip setuptools wheel | |
sudo pip3 install meson ninja | |
sudo apt-get update -y | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev xvfb | |
phpize | |
./configure | |
make -j | |
sudo make install | |
- name: Check for PHP startup warnings | |
run: | | |
xvfb-run -a php -d display_errors=stderr -d display_startup_errors=1 -d error_reporting=-1 -r ';' 2>/tmp/php-startup-warnings | |
if [ -s /tmp/php-startup-warnings ]; then | |
echo 'The PHP extension was successfully installed, but PHP raised these warnings:' >&2 | |
cat /tmp/php-startup-warnings >&2 | |
exit 1 | |
fi | |
echo "PHP didn't raise any warnings at startup." | |
- name: Inspect extension | |
run: xvfb-run -a php --ri ardillo |