]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: Test with Debian bullseye
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 26 Feb 2025 03:24:58 +0000 (21:24 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 4 Mar 2025 21:43:55 +0000 (15:43 -0600)
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 <lucas.de.marchi@gmail.com>
.github/actions/setup-debian/action.yml
.github/workflows/main.yml

index f9115572e20df28ed1855c6781abe7fa09651091..1e5922fa60454869c7f6f48f4ff82e65ccbea0fb 100644 (file)
@@ -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
index 58b3ad3132db1f11d070ce481a59d6de92d41b5d..defe657686c3777e25f4bf4d938485936c44c5ce 100644 (file)
@@ -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'