diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml new file mode 100644 index 0000000000..5916155c07 --- /dev/null +++ b/.github/workflows/clang-tidy.yml @@ -0,0 +1,18 @@ +name: clang-tidy-review + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: ZedThree/clang-tidy-review@v0.14.0 + 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/upload@v0.14.0 + id: upload-review diff --git a/CMakeLists.txt b/CMakeLists.txt index 841f322a13..fac42d39ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )