From: Lucas De Marchi Date: Fri, 16 Aug 2024 13:57:27 +0000 (-0500) Subject: ci: Add Debian with --disable-test-modules X-Git-Tag: v34~499 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eacbb467bc3fef420f114b25a5989fb947a76e4a;p=thirdparty%2Fkmod.git ci: Add Debian with --disable-test-modules Signed-off-by: Lucas De Marchi Reviewed-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/78 --- diff --git a/.github/actions/setup-debian/action.yml b/.github/actions/setup-debian/action.yml new file mode 100644 index 00000000..7fd333c9 --- /dev/null +++ b/.github/actions/setup-debian/action.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61d20ee5..11f693d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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