-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (34 loc) · 978 Bytes
/
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
name: tidy
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: ubuntu install clang-tidy
run: |
sudo apt install clang-tidy-12
clang-tidy-12 --version
- name: set up python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install python dependencies
run: pip install --upgrade pip conan==1.*
- name: checkout
uses: actions/checkout@v2
- name: cmake
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
- name: clang-tidy
run: |
FILES=$( find . -path ./build -prune -false -o -type f \( -iname \*.cpp \) )
clang-tidy-12 -p build -header-filter '.*' $FILES