From 7e1255df15b42477ed09b789cf7faec8ea8fcf5d Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Thu, 12 Sep 2024 14:19:47 +0700 Subject: [PATCH] ext/gd: enable avif tests on GH-Actions When the avif support was first added (GH-7026), php-src did not use GitHub Actions. When we moved to GitHub Actions for CI, the `--with-avif` option nor the `libavif-dev` dependencies were not added. Cirrus CI still runs the tests, and now that we no longer use Travis CI, this brings parity to test avif on x64 tests on GitHub Actions as well. `libavif-dev` package's x86 builds seem to be missing[^1][^2] on older Ubuntu versions, so this commit only adds it for x64 builds. [^1]: https://packages.ubuntu.com/jammy/libavif-dev [^2]: https://packages.ubuntu.com/noble/libavif-dev --- .github/actions/apt-x64/action.yml | 1 + .github/actions/configure-x64/action.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index aa190ded78db6..e4d8ff6994a39 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -39,6 +39,7 @@ runs: libsqlite3-dev \ libsqlite3-mod-spatialite \ libwebp-dev \ + libavif-dev \ libonig-dev \ libcurl4-openssl-dev \ libxml2-dev \ diff --git a/.github/actions/configure-x64/action.yml b/.github/actions/configure-x64/action.yml index 3de17a246d02f..ef0374cdd53dd 100644 --- a/.github/actions/configure-x64/action.yml +++ b/.github/actions/configure-x64/action.yml @@ -28,6 +28,7 @@ runs: --enable-gd \ --with-jpeg \ --with-webp \ + --with-avif \ --with-freetype \ --with-xpm \ --enable-exif \