Skip to content

Commit

Permalink
ci: Add Debian with --disable-test-modules
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Link: #78
  • Loading branch information
lucasdemarchi committed Aug 17, 2024
1 parent dcc1c32 commit eacbb46
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/actions/setup-debian/action.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand All @@ -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

0 comments on commit eacbb46

Please sign in to comment.