]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: Add Debian with --disable-test-modules
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 16 Aug 2024 13:57:27 +0000 (08:57 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 17 Aug 2024 17:01:25 +0000 (12:01 -0500)
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/78
.github/actions/setup-debian/action.yml [new file with mode: 0644]
.github/workflows/main.yml

diff --git a/.github/actions/setup-debian/action.yml b/.github/actions/setup-debian/action.yml
new file mode 100644 (file)
index 0000000..7fd333c
--- /dev/null
@@ -0,0 +1,25 @@
+name: 'setup Debian'
+description: 'Setup a Debian container for running CI'
+runs:
+  using: 'composite'
+  steps:
+    - name: Install dependencies
+      shell: bash
+      run: |
+        apt-get update
+        apt-get install --yes \
+          build-essential \
+          autoconf \
+          automake \
+          gtk-doc-tools \
+          libssl-dev \
+          liblzma-dev \
+          libssl-dev \
+          libtool \
+          libzstd-dev \
+          scdoc \
+          zlib1g-dev \
+          zstd
+        # not used by default in Debian since it builds with --disable-test-modules
+        # developers should have it though
+        # apt-get install linux-headers-generic
index 61d20ee5b19e06a16bb247b9f40cc62db766e323..11f693d9a03c3e69370919f7524895ce633b40c6 100644 (file)
@@ -27,6 +27,9 @@ jobs:
             test: 'yes'
           - container: 'alpine:latest'
             test: 'no'
+          - container: 'debian:unstable'
+            test: 'yes'
+            configure: '--disable-test-modules'
 
     container:
       image: ${{ matrix.container }}
@@ -42,12 +45,14 @@ jobs:
         if: ${{ startsWith(matrix.container, 'fedora') }}
       - uses: ./.github/actions/setup-alpine
         if: ${{ startsWith(matrix.container, 'alpine') }}
+      - uses: ./.github/actions/setup-debian
+        if: ${{ startsWith(matrix.container, 'debian') }}
 
       - name: configure
         run: |
           mkdir build
           cd build
-          ../autogen.sh c
+          ../autogen.sh c ${{ matrix.configure }}
 
       - name: build
         run: |
@@ -69,4 +74,4 @@ jobs:
         if: ${{ matrix.test == 'yes' }}
         run: |
           cd build
-          make KDIR=/usr/lib/modules/*/build distcheck
+          DISTCHECK_CONFIGURE_FLAGS=${{ matrix.configure }} make KDIR=/usr/lib/modules/*/build distcheck