-
Notifications
You must be signed in to change notification settings - Fork 23
58 lines (51 loc) · 1.64 KB
/
clang-tidy-review.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Clang-Tidy Review
on:
pull_request:
paths:
- '**/*.hpp'
- '**/*.cpp'
- 'libs/**'
- '.github/workflows/clang-tidy-review.yml'
- '!bindings/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
clangtidy:
runs-on: ubuntu-latest
name: 🚨 Clang-Tidy
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Review code with Clang-Tidy
uses: ZedThree/clang-tidy-review@v0.19.0
id: review
with:
cmake_command: >
cmake . -B build
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DFICTION_CLI=ON
-DFICTION_TEST=ON
-DFICTION_BENCHMARK=OFF
-DFICTION_EXPERIMENTS=ON
-DMOCKTURTLE_EXAMPLES=OFF
build_dir: build
apt_packages: 'libreadline-dev,libtbb-dev'
config_file: '.clang-tidy'
exclude: 'libs/*,docs/*,benchmarks/*,bib/*,*/pyfiction/pybind11_mkdoc_docstrings.hpp,*/pyfiction/documentation.hpp'
split_workflow: true
- name: Make sure that the review file exists
id: check-review-output
uses: andstor/file-existence-action@v3.0.0
with:
files: 'clang-tidy-review-output.json'
ignore_case: true
- name: Upload review artifact
uses: actions/upload-artifact@v4
with:
name: clang-tidy-review
path: |
clang-tidy-review-output.json
clang-tidy-review-metadata.json