From: Lucas De Marchi Date: Wed, 26 Feb 2025 03:24:58 +0000 (-0600) Subject: ci: Test with Debian bullseye X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae7b0c309a38804e21ac04a5924030be14b88b58;p=thirdparty%2Fkmod.git ci: Test with Debian bullseye This is used to build LibreELEC as per https://github.com/kmod-project/kmod/issues/298. Test with it. Signed-off-by: Lucas De Marchi --- diff --git a/.github/actions/setup-debian/action.yml b/.github/actions/setup-debian/action.yml index f9115572..1e5922fa 100644 --- a/.github/actions/setup-debian/action.yml +++ b/.github/actions/setup-debian/action.yml @@ -13,6 +13,18 @@ runs: run: | export DEBIAN_FRONTEND=noninteractive export TZ=Etc/UTC + + . /etc/os-release + + backports_pkgs=() + pkgs=() + if [[ "$VERSION_CODENAME" == "bullseye" ]]; then + echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list + backports_pkgs=("meson" "ninja-build") + else + pkgs+=("pahole") + fi + apt-get update apt-get install --yes \ build-essential \ @@ -25,7 +37,11 @@ runs: libzstd-dev \ linux-headers-generic \ meson \ - pahole \ scdoc \ zlib1g-dev \ - zstd + zstd \ + "${pkgs[@]}" + + if (( ${#backports_pkgs[@]} )); then + apt-get install --yes -t ${VERSION_CODENAME}-backports "${backports_pkgs[@]}" + fi diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58b3ad31..defe6576 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,9 @@ jobs: - compiler: 'gcc' container: 'debian:unstable' multilib: 'true' + - compiler: 'gcc' + container: 'debian:bullseye-slim' + meson_setup: '-Dzstd=disabled -Dxz=disabled -Dzlib=disabled -Dopenssl=enabled -Dtools=true' - compiler: 'gcc' container: 'fedora:latest' - compiler: 'gcc'