Skip to content

Commit

Permalink
Add clang-tidy integration in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
daljit46 committed Oct 30, 2023
1 parent 277f3b1 commit baf8c42
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: clang-tidy-review

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: ZedThree/[email protected]
id: review
with:
apt_packages: g++ libqt5opengl5-dev libqt5svg5-dev libglvnd-dev libeigen3-dev zlib1g-dev libfftw3-dev ninja-build
cmake_command: cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=on

- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,5 @@ add_custom_target(Github SOURCES
.github/workflows/package-macos-anaconda.yml
.github/workflows/package-macos-native.yml
.github/workflows/package-windows-msys2.yml
.github/workflows/clang-tidy.yml
)

0 comments on commit baf8c42

Please sign in to comment.