diff --git a/.github/workflows/Kernel-module.yml b/.github/workflows/Kernel-module.yml new file mode 100644 index 0000000..80a10a2 --- /dev/null +++ b/.github/workflows/Kernel-module.yml @@ -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, + # . + 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` +