Skip to content

Commit

Permalink
add github workflow for test build of kernel module in different kern…
Browse files Browse the repository at this point in the history
…el versions

merged from VAL-6.1
  • Loading branch information
Fantu committed Nov 1, 2023
1 parent 63ddf16 commit 1e0edef
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/Kernel-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build module

on:
workflow_dispatch:
push:
branches:
- "*"
paths:
- "module/**"
pull_request:
branches:
- "*"
paths:
- "module/**"

jobs:
build-on-image:
name: Kernel ${{ matrix.kversion }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
# Disable seccomp until a container manager in GitHub recognizes
# clone3() syscall,
# <https://github.com/actions/virtual-environments/issues/3812>.
options: --security-opt seccomp=unconfined

strategy:
fail-fast: false
matrix:
include:
- kversion: "5.10"
image: "library/debian:bullseye"
- kversion: "6.1"
image: "library/debian:bookworm"
- kversion: "last stable"
image: "library/debian:sid"

steps:
- uses: actions/checkout@v4

- name: Install packages required
run: |
apt-get update
apt-get install -y linux-headers-amd64 make g++
- name: Build kernel module
run: |
cd module
make -Wall -C /lib/modules/*/build M=`pwd`

0 comments on commit 1e0edef

Please sign in to comment.