Skip to content

amend! ci: Add Fedora #15

amend! ci: Add Fedora

amend! ci: Add Fedora #15

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:
container: ['ubuntu:22.04', 'ubuntu:24.04', 'archlinux:base-devel', 'fedora:latest']
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') }}
- name: configure
run: |
mkdir build
cd build
../autogen.sh c
- name: build
run: |
cd build
make -j$(nproc)
- name: test
run: |
cd build
make KDIR=/usr/lib/modules/*/build -j$(nproc) check
- name: install
run: |
cd build
DESTDIR=$PWD/inst make install
- name: distcheck
run: |
cd build
make KDIR=/usr/lib/modules/*/build distcheck