-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (27 loc) · 1016 Bytes
/
clang-tidy.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
name: clang-tidy-review
# You can be more specific, but it currently only works on pull requests
on: [pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-clang-tidy
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: ZedThree/[email protected]
id: review
with:
config_file: src/.clang-tidy
build_dir: build
apt_packages: libopenmpi-dev,libhdf5-mpi-dev,python3-dev,python3-numpy,python3-matplotlib
cmake_command: cmake . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DQUOKKA_PYTHON=ON -DQUOKKA_OPENPMD=ON -DopenPMD_USE_ADIOS2=OFF -DAMReX_SPACEDIM=3
split_workflow: true
# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1