-
Notifications
You must be signed in to change notification settings - Fork 122
64 lines (53 loc) · 1.4 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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Clang-tidy
on:
push:
branches:
- master
pull_request:
branches:
- master
- devel
types:
- opened
- reopened
- synchronize
- ready_for_review
paths-ignore:
- 'applications/**'
- 'contrib/**'
- 'doc/**'
- 'automatic_test/**'
- 'tests/**'
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request'}}
jobs:
clang-tidy:
runs-on: [ubuntu-22.04]
container:
image: dealii/dealii:v9.6.0-jammy
options: --user root
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 30
- name: Cache llvm-18 installation
uses: actions/cache@v3
with:
path: /usr/lib/llvm-18
key: ${{ runner.os }}-llvm-18
restore-keys: |
${{ runner.os }}-llvm
- name: Install llvm-18
if: steps.cache.outputs.cache-hit != 'true'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 18 all
- name: Set up path for llvm-18
run: |
echo "/usr/lib/llvm-18/bin" >> "$GITHUB_PATH"
- name: Run clang-tidy
run: |
./contrib/utilities/clang_tidy.sh .