forked from G-Core/linux-regex-module
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1010 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Lint
on: [push]
jobs:
diff-upstream:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install kernel headers
run: |
sudo apt update
sudo apt install -y linux-headers-$(uname -r)
- name: checkpatch
shell: bash
run: |
cd /lib/modules/$(uname -r)/build
touch COPYING CREDITS MAINTAINERS README
scripts/checkpatch.pl --ignore \
LINUX_VERSION_CODE,CONSTANT_COMPARISON \
-f ${GITHUB_WORKSPACE}/src/kmod/{rex.c,rex.h,rex_trace.h} \
--codespell --codespellfile \
/usr/lib/python3/dist-packages/codespell_lib/data/dictionary.txt
- name: coccicheck
run: |
make -C /lib/modules/$(uname -r)/build \
C=2 CHECK=/lib/modules/$(uname -r)/build/scripts/coccicheck \
PYTHONHOME=/usr \
M=$PWD/src \
-j$(nproc) kmod/rex.o \
| grep --line-buffered --color -E "WARNING|\$"