Skip to content

CI: add PHP 8.4, update libdeflate to 1.23 #43

CI: add PHP 8.4, update libdeflate to 1.23

CI: add PHP 8.4, update libdeflate to 1.23 #43

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: "${{ matrix.php }}"
- name: Build libdeflate
run: |
git clone --depth=1 https://github.com/ebiggers/libdeflate.git -b v1.23
cd libdeflate
cmake . -DCMAKE_PREFIX_PATH=. -DCMAKE_INSTALL_PREFIX=.
make install
cd ..
- name: Build extension
run: |
phpize
PKG_CONFIG_PATH="${{ github.workspace }}/libdeflate/lib/pkgconfig" ./configure --with-libdeflate
make
- name: Run .phpt tests
run: REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_ARGS="--show-diff" make test