diff --git a/.github/actions/setup-alpine/action.yml b/.github/actions/setup-alpine/action.yml new file mode 100644 index 0000000..1c7eae9 --- /dev/null +++ b/.github/actions/setup-alpine/action.yml @@ -0,0 +1,22 @@ +name: 'setup Alpine' +description: 'Setup an Alpine container for running CI' +runs: + using: 'composite' + steps: + - name: Install dependencies + shell: sh + run: | + apk update + apk add \ + autoconf \ + automake \ + bash \ + build-base \ + gtk-doc \ + libtool \ + linux-edge-dev \ + openssl-dev \ + scdoc \ + xz-dev \ + zlib-dev \ + zstd-dev diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a2fff2..b4ad5cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - container: ['ubuntu:22.04', 'ubuntu:24.04', 'archlinux:base-devel', 'fedora:latest'] + include: + - container: 'ubuntu:22.04' + test: 'yes' + - container: 'ubuntu:24.04' + test: 'yes' + - container: 'archlinux:base-devel' + test: 'yes' + - container: 'fedora:latest' + test: 'yes' + - container: 'alpine:latest' + test: 'no' container: image: ${{ matrix.container }} @@ -25,6 +35,8 @@ jobs: if: ${{ startsWith(matrix.container, 'archlinux') }} - uses: ./.github/actions/setup-fedora if: ${{ startsWith(matrix.container, 'fedora') }} + - uses: ./.github/actions/setup-alpine + if: ${{ startsWith(matrix.container, 'alpine') }} - name: configure run: | @@ -38,6 +50,7 @@ jobs: make -j$(nproc) - name: test + if: ${{ matrix.test == 'yes' }} run: | cd build make KDIR=/usr/lib/modules/*/build -j$(nproc) check @@ -48,6 +61,7 @@ jobs: DESTDIR=$PWD/inst make install - name: distcheck + if: ${{ matrix.test == 'yes' }} run: | cd build make KDIR=/usr/lib/modules/*/build distcheck