Skip to content

Commit 128c071

Browse files
SebastianSchildtnayakned
authored andcommittedJan 27, 2025·
Github action to test build of kernel module
Signed-off-by: Sebastian Schildt <sebastian.schildt@de.bosch.com>
1 parent f187008 commit 128c071

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build ACF-CAN kernel module
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
env:
14+
CONFIG_ACF_CAN: m
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install dependencies
19+
run: sudo apt update && sudo apt install -y meson libcmocka0 libcmocka-dev lcov
20+
- name: Patching license
21+
run: sed -i 's#MODULE_LICENSE("BSD3")#MODULE_LICENSE("Dual BSD/GPL")#g' examples/acf-can/linux-kernel-mod/acfcanmodulemetadata.h
22+
- name: Building module
23+
working-directory: examples/acf-can/linux-kernel-mod/
24+
run: make

0 commit comments

Comments
 (0)
Please sign in to comment.