mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Adding default GD bundle to workflow environment for webp support
This commit is contained in:
8
.github/workflows/test-unit.yml
vendored
8
.github/workflows/test-unit.yml
vendored
@@ -65,15 +65,15 @@ jobs:
|
|||||||
grep -m1 -P '^deb http://deb.debian.org/debian [a-z]+ main' /etc/apt/sources.list |
|
grep -m1 -P '^deb http://deb.debian.org/debian [a-z]+ main' /etc/apt/sources.list |
|
||||||
awk '{print $3}'
|
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: |
|
run: |
|
||||||
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.4.0", ">=") ? 1 : 0);') = '1' ]
|
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.4.0", ">=") ? 1 : 0);') = '1' ]
|
||||||
then
|
then
|
||||||
docker-php-ext-configure gd --with-jpeg
|
docker-php-ext-configure gd --enable-gd
|
||||||
else
|
else
|
||||||
docker-php-ext-configure gd --with-jpeg-dir=/usr
|
docker-php-ext-configure gd --with-gd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install necessary PHP extensions
|
- name: Install necessary PHP extensions
|
||||||
|
Reference in New Issue
Block a user