-
Notifications
You must be signed in to change notification settings - Fork 477
45 lines (43 loc) · 1.28 KB
/
clangtidy.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
on:
# scheduled workflows run on the latest commit on the default or base branch
schedule:
- cron: '0 4 * * 1/2'
# allow manual dispatch
workflow_dispatch:
jobs:
clangtidy:
runs-on: ubuntu-latest
steps:
- name: Checkout XRT
uses: actions/checkout@v2
- name: Store sha
run: echo ${{ github.sha }} > sha
- name: Compare sha
uses: actions/cache@v2
id: cache-sha
with:
path: sha
key: clangtidy-${{ github.sha }}
- name: Install dependencies
if: steps.cache-sha.outputs.cache-hit != 'true'
run: |
sudo apt update
sudo src/runtime_src/tools/scripts/xrtdeps.sh
sudo pip3 install clang-html
- name: Build with clangtidy
if: steps.cache-sha.outputs.cache-hit != 'true'
run: |
build/build.sh -clangtidy -opt |& tee build.clangtidy.log
clang-tidy-html build.clangtidy.log
- name: Upload clang raw log
if: steps.cache-sha.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v1
with:
name: clang-tidy-log
path: build.clangtidy.log
- name: Upload clang html
if: steps.cache-sha.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v1
with:
name: clang-tidy-html
path: clang.html