-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 991 Bytes
/
linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: clang-tidy-review
on:
pull_request:
branches: [ main, develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Run clang-tidy
uses: ZedThree/clang-tidy-review@v0.19.0
id: review
with:
build_dir: build
apt_packages: "qt6-base-dev,qt6-tools-dev,libglu1-mesa-dev,freeglut3-dev,libfftw3-dev,libnetcdf-c++4-dev,libopenmpi-dev,petsc-dev,slepc-dev,liblapack-dev,libparpack2-dev,libsundials-dev,uuid-dev,libboost-all-dev"
cmake_command: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=on
config_file: ${{ github.workspace }}/.clang-tidy
- uses: ZedThree/clang-tidy-review/upload@v0.14.0
id: upload-review
- if: steps.review.outputs.total_comments > 0
run: exit 1