-
Notifications
You must be signed in to change notification settings - Fork 25
50 lines (39 loc) · 1.07 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: clang-tidy-review
on: [push, pull_request]
env:
PYTHONUNBUFFERED: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
# Ideally we would want to run the clang-tidy for every kind of build.
# This would make shure that we will check all platform dependent code parts.
# Here we only test the standard linux build.
- name: Install python3 and libraries
run: |
sudo apt update
sudo apt install python3 python3-pip
pip install click
- name: Create build directory
run: |
mkdir build
- name: Run CMake configure (default)
run: |
cd build
cmake ..
- name: Build
run: |
cd build
make -j4
- name: Run clang-tidy
run: |
./tooling/clang-tidy.py clang-tidy-report --build-root build --cores 4
- name: Print report
run: |
cat build/clang-tidy-report.txt
- name: Check if report is empty
run: |
./tooling/clang-tidy.py check --build-root build