Skip to content

Commit

Permalink
Add clang tidy in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Feb 27, 2024
1 parent f78a88f commit 2b23248
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Clang Tidy Diff
on:
pull_request_target:
paths:
- '**.cpp'
- '**.h'
- '.github/workflows/clang-tidy.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- uses: turtlesec-no/get-ninja@main
- uses: ZedThree/[email protected]
id: review
with:
token: ${{ secrets.CLANG_TIDY_TOKEN }}
apt_packages: |
libc++-dev, libc++abi-dev, libpixman-1-dev, \
libfreetype6-dev, libharfbuzz-dev, zlib1g-dev, libx11-dev, \
libxcursor-dev, libxi-dev libgl1-mesa-dev
cmake_command: |
cmake . -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DLAF_BACKEND=none
- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review
- if: steps.review.outputs.total_comments > 0
run: exit 1

0 comments on commit 2b23248

Please sign in to comment.