Skip to content

Commit 87a717b

Browse files
committed
github: add code checkers
Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent 2efdd25 commit 87a717b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/c-cpp.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,29 @@ jobs:
5757

5858
steps:
5959
- uses: actions/checkout@v3
60+
6061
- name: update apt
6162
run: sudo apt update -y
63+
6264
- name: install compiler
6365
run: sudo apt install -y ${{ matrix.config.deps }}
66+
6467
- name: install deps
65-
run: sudo apt install -y meson ninja-build libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libwayland-dev libx11-xcb-dev libx11-dev libgbm-dev libevdev-dev libfmt-dev
68+
run: sudo apt install -y meson ninja-build libdrm-dev libegl1-mesa-dev libgles2-mesa-dev \
69+
libwayland-dev libx11-xcb-dev libx11-dev libgbm-dev libevdev-dev libfmt-dev \
70+
clang-tools cppcheck
71+
6672
- name: configure
6773
env:
6874
CC: ${{ matrix.config.cc }}
6975
CXX: ${{ matrix.config.cxx }}
7076
run: meson setup -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
77+
7178
- name: build
7279
run: ninja -v -C build
80+
81+
- name: Clang static analysis
82+
run: ninja -C build scan-build
83+
84+
- name: cppcheck
85+
run: cppcheck --enable=all kms++ kms++utils kmscube utils

0 commit comments

Comments
 (0)