Skip to content

Commit ccd3be5

Browse files
committed
CI: add clang-tidy.yml
1 parent b8e3808 commit ccd3be5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: clang-tidy-review
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
# Run clang-tidy
14+
- uses: ZedThree/clang-tidy-review@v0.19.0
15+
id: review
16+
with:
17+
split_workflow: true
18+
clang_tidy_checks: ''
19+
# List of packages to install
20+
apt_packages: qt6-tools-dev qt6-tools-dev-tools \
21+
qt6-base-dev qt6-base-dev-tools qt6-qpa-plugins \
22+
libqt6svg6-dev qt6-l10n-tools qt6-translations-l10n \
23+
qt6-scxml-dev qt6-multimedia-dev libqt6serialport6-dev \
24+
libxkbcommon-dev libxkbcommon-x11-dev xorg-dev libx11-xcb-dev \
25+
libx11-dev libxfixes-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-cursor0 \
26+
libxcb-xinerama0-dev libxcb-composite0-dev libxcomposite-dev \
27+
libxinerama-dev libxcb1-dev libx11-xcb-dev libxcb-xfixes0-dev \
28+
libpixman-1-dev libpam0g-dev libutf8proc-dev \
29+
libfuse3-dev libusb-1.0-0-dev \
30+
libvncserver-dev libssh-dev libtelnet-dev freerdp2-dev \
31+
libpcap-dev libcups2-dev \
32+
libavcodec-dev libavformat-dev libresample1-dev libswscale-dev
33+
34+
# CMake command to run in order to generate compile_commands.json
35+
build_dir: tidy
36+
cmake_command: cmake -Btidy -S.
37+
38+
# Uploads an artefact containing clang_fixes.json
39+
- uses: ZedThree/clang-tidy-review/upload@v0.19.0
40+
id: upload-review

0 commit comments

Comments
 (0)