Skip to content

Commit 2795c9f

Browse files
committed
github: add code checkers
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
1 parent 2efdd25 commit 2795c9f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/c-cpp.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,33 @@ 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: |
69+
sudo apt install -y meson ninja-build
70+
sudo apt install libdrm-dev libegl1-mesa-dev libgles2-mesa-dev \
71+
libx11-xcb-dev libx11-dev libgbm-dev libevdev-dev libfmt-dev clang-tools
72+
sudo apt install -y meson ninja-build libdrm-dev libegl1-mesa-dev libgles2-mesa-dev \
73+
libwayland-dev libx11-xcb-dev libx11-dev libgbm-dev libevdev-dev libfmt-dev \
74+
clang-tools cppcheck
75+
6676
- name: configure
6777
env:
6878
CC: ${{ matrix.config.cc }}
6979
CXX: ${{ matrix.config.cxx }}
7080
run: meson setup -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
81+
7182
- name: build
7283
run: ninja -v -C build
84+
85+
- name: Clang static analysis
86+
run: ninja -C build scan-build
87+
88+
- name: cppcheck
89+
run: cppcheck --enable=all kms++ kms++utils kmscube utils

0 commit comments

Comments
 (0)