Skip to content

Commit

Permalink
Github action to test build of kernel module
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schildt <[email protected]>
  • Loading branch information
SebastianSchildt committed Jan 26, 2025
1 parent 202f742 commit 6b11c0b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-linuxkernelmod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build ACF-CAN kernel module

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
CONFIG_ACF_CAN: m

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt update && sudo apt install -y meson libcmocka0 libcmocka-dev lcov
- name: Patching license
run: sed -i 's#MODULE_LICENSE("BSD3")#MODULE_LICENSE("Dual BSD/GPL")#g' examples/acf-can/linux-kernel-mod/acfcanmodulemetadata.h
- name: Building module
working-directory: examples/acf-can/linux-kernel-mod/
run: make

0 comments on commit 6b11c0b

Please sign in to comment.