-
Notifications
You must be signed in to change notification settings - Fork 220
42 lines (35 loc) · 1.04 KB
/
clang-tidy-run.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: clang-tidy-review
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Cache Timestamp
id: cache_timestamp
uses: nanzm/[email protected]
with:
format: 'YYYY-MM-DD-HH-mm-ss'
- name: Retrieve cached results
uses: actions/cache@v3
with:
path: |
/root/.cache/clang-tidy
/root/.cache/bazel
key: clang-tidy-${{ steps.cache_timestamp.outputs.time }}
restore-keys: clang-tidy-
- name: Make compilation DB
run: |
export USE_BAZEL_VERSION=6.5.0
.github/bin/make-compilation-db.sh
- name: Create clang-tidy review
uses: ZedThree/[email protected]
with:
split_workflow: true # Post comments separately
clang_tidy_version: 17
config_file: .clang_tidy
- uses: ZedThree/clang-tidy-review/[email protected]