Skip to content

Commit

Permalink
CI: add clang-tidy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Dec 8, 2024
1 parent b8e3808 commit ccd3be5
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: clang-tidy-review

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
# Run clang-tidy
- uses: ZedThree/[email protected]
id: review
with:
split_workflow: true
clang_tidy_checks: ''
# List of packages to install
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

# CMake command to run in order to generate compile_commands.json
build_dir: tidy
cmake_command: cmake -Btidy -S.

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review

0 comments on commit ccd3be5

Please sign in to comment.