Skip to content

kmod 33

kmod 33 #41

Workflow file for this run

name: Build and Test
on:
push:
branches: [master, ci-test]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
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 }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-ubuntu
if: ${{ startsWith(matrix.container, 'ubuntu') }}
- uses: ./.github/actions/setup-archlinux
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: |
mkdir build
cd build
../autogen.sh c
- name: build
run: |
cd build
make -j$(nproc)
- name: test
if: ${{ matrix.test == 'yes' }}
run: |
cd build
make KDIR=/usr/lib/modules/*/build -j$(nproc) check
- name: install
run: |
cd build
DESTDIR=$PWD/inst make install
- name: distcheck
if: ${{ matrix.test == 'yes' }}
run: |
cd build
make KDIR=/usr/lib/modules/*/build distcheck