From 7fa047bfa38353bd1b4f095f2a75c851684e096d Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 9 Dec 2020 14:27:25 -0800 Subject: [PATCH] Adding default GD bundle to workflow environment for webp support --- .github/workflows/test-unit.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 5b14f1de5..44d79e693 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -65,15 +65,15 @@ jobs: grep -m1 -P '^deb http://deb.debian.org/debian [a-z]+ main' /etc/apt/sources.list | awk '{print $3}' ) - apt-get -t "${DEBIAN_RELEASE}-backports" install -y git zip libzip-dev libbz2-dev libpng-dev libjpeg-dev + apt-get -t "${DEBIAN_RELEASE}-backports" install -y git zip libzip-dev libbz2-dev libpng-dev libjpeg-dev libwebp-dev - - name: Configure PHP gd extension with JPEG support + - name: Configure PHP gd extension with default bundle run: | if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.4.0", ">=") ? 1 : 0);') = '1' ] then - docker-php-ext-configure gd --with-jpeg + docker-php-ext-configure gd --enable-gd else - docker-php-ext-configure gd --with-jpeg-dir=/usr + docker-php-ext-configure gd --with-gd fi - name: Install necessary PHP extensions