mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
CI: More reliable Debian codename parsing
Remains compatible with Debian 9 but also supports Debian 12, which has switched to the deb822 APT sources format
This commit is contained in:
parent
fb7ee9efaf
commit
8a1a129c14
11
.github/workflows/test-unit.yml
vendored
11
.github/workflows/test-unit.yml
vendored
@ -73,13 +73,10 @@ jobs:
|
||||
|
||||
- name: Install operating system dependencies
|
||||
run: |
|
||||
DEBIAN_RELEASE=$(
|
||||
grep -m1 -P '^deb http://(deb|archive).debian.org/debian [a-z]+ main' /etc/apt/sources.list |
|
||||
awk '{print $3}'
|
||||
)
|
||||
USE_GIT_BPO="$(. /etc/os-release && test $VERSION_ID -lt 10 && echo "-t ${DEBIAN_RELEASE}-backports" || echo)"
|
||||
apt-get $USE_GIT_BPO install -y git
|
||||
apt-get -t "${DEBIAN_RELEASE}-backports" install -y zip libzip-dev libbz2-dev libpng-dev libjpeg-dev libwebp-dev libvpx-dev libicu-dev
|
||||
. /etc/os-release
|
||||
DEBIAN_RELEASE="$(echo "$VERSION" | grep -oP '^[^(]+\(\K[^)]+')"
|
||||
USE_GIT_BPO="$(test $VERSION_ID -lt 10 && echo "-t ${DEBIAN_RELEASE}-backports" || echo)"
|
||||
apt-get $USE_GIT_BPO install -y git zip libzip-dev libbz2-dev libpng-dev libjpeg-dev libwebp-dev libvpx-dev libicu-dev
|
||||
|
||||
- name: Configure PHP gd extension with default bundle
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user