-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1013 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
35
36
37
38
39
40
41
42
43
44
45
46
name: clang-tidy
on:
workflow_dispatch:
inputs:
check_type:
type: choice
description: "Choose the type of check you want to run"
required: true
options:
- "readability"
- "performance"
- "modernize"
jobs:
build-analyze:
name: Build and Analyze
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Prepare for Build
id: prepare
run: |
sudo apt install ninja-build clang-14
- name: Configure for Build
id: configure
run: |
cd simulation
cmake --preset lin-clang-rel -DENABLE_CLANG_TIDY=1 -DCLANG_TIDY_CHECKS="${{ github.event.inputs.check_type }}"
- name: Build & Analyze
id: build
run: |
cd simulation
cmake --build --preset lin-clang-rel | tee output.txt
- name: Save analysis
id: save
uses: actions/upload-artifact@v1
with:
name: analysis_output
path: simulation/output.txt