forked from CHIP-SPV/chipStar
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.69 KB
/
clang-tidy-format.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
# Workflow syntax:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: cpp-linter
on:
push:
paths-ignore: "docs/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
cpp-linter:
runs-on: ubuntu-latest
container:
image: pveleskopglc/chipstar:cpp-linter
options: --user chipStarUser
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Run C/C++ Linter
run: |
ml StdEnv
. /home/chipStarUser/venv/bin/activate
touch `pwd`/include/chipStarConfig.hh
export CPATH=`pwd`/include/:$CPATH
export CPATH=`pwd`/HIP/include/:$CPATH
export CPATH=`pwd`/spirv-extractor/SPIRV-Tools/include/:$CPATH
echo "CPATH=$CPATH" >> $GITHUB_ENV
echo "$CPATH"
echo "$LD_LIBRARY_PATH"
echo "$LIBRARY_PATH"
echo "$PATH"
cpp-linter \
--style="file" \
--extensions=cc,hh \
--tidy-checks="-*,readability-*,modernize-*,clang-analyzer-*" \
--repo-root=. \
--version=15 \
--verbosity=info \
--lines-changed-only="true" \
--files-changed-only="true" \
--thread-comments="false" \
--no-lgtm=true \
--step-summary="false" \
--ignore=".github" \
--database= \
--file-annotations=true \
--extra-arg="-std=c++17" \
--tidy-review="false" \
--format-review="false"
if [ $? -ne 0 ]; then
exit 1
fi
shell: bash