Skip to content

Commit 94810dd

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

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 qt6-base-dev qt6-base-dev-tools qt6-qpa-plugins libqt6svg6-dev qt6-l10n-tools qt6-translations-l10n qt6-scxml-dev qt6-multimedia-dev libqt6serialport6-dev libxkbcommon-dev libxkbcommon-x11-dev xorg-dev libx11-xcb-dev libx11-dev libxfixes-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-cursor0 libxcb-xinerama0-dev libxcb-composite0-dev libxcomposite-dev libxinerama-dev libxcb1-dev libx11-xcb-dev libxcb-xfixes0-dev libpixman-1-dev libpam0g-dev libutf8proc-dev libfuse3-dev libusb-1.0-0-dev libvncserver-dev libssh-dev libtelnet-dev freerdp2-dev libpcap-dev libcups2-dev libavcodec-dev libavformat-dev libresample1-dev libswscale-dev
21+
22+
# CMake command to run in order to generate compile_commands.json
23+
build_dir: tidy
24+
cmake_command: cmake -Btidy -S.
25+
26+
# Uploads an artefact containing clang_fixes.json
27+
- uses: ZedThree/clang-tidy-review/upload@v0.19.0
28+
id: upload-review

0 commit comments

Comments
 (0)