-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (60 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
name: clang-tidy-review
on:
pull_request:
paths:
- 'src/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
review:
runs-on: 'ubuntu-24.04'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 14
platform: x64
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.6.2
arch: gcc_64
cache: true
cache-key-prefix: ${{ runner.os }}-qt
- name: Setup Rust toolchain
uses: moonrepo/setup-rust@v1
with:
channel: stable
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Cache corrosion
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/build/_deps
${{ github.workspace }}/build/*/cargo/build
!${{ github.workspace }}/build/*/cargo/build/**/incremental
${{ github.workspace }}/build/corrosion/**/target
!${{ github.workspace }}/build/corrosion/**/target/**/incremental
key: corrosion-linux-x64
- name: Setup CMake
uses: lukka/get-cmake@latest
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgConfigurationJsonGlob: 'vcpkg-configuration.json'
vcpkgJsonGlob: 'vcpkg.json'
- name: CMake Generate
run: cmake --preset native -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Run clang-tidy
uses: ZedThree/[email protected]
id: review
with:
build_dir: build
config_file: ".clang-tidy"
exclude: "3rdpart/*, build/*"