File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ Checks : >
3
+ -clang-analyzer-security.insecureAPI.strcat,
4
+ -clang-analyzer-security.insecureAPI.strcpy,
5
+ modernize-shrink-to-fit,
6
+ modernize-use-default-member-init,
7
+ modernize-use-equals-default,
8
+ modernize-use-equals-delete,
9
+ modernize-use-override,
10
+ performance-*
11
+ HeaderFilterRegex : .*
12
+ WarningsAsErrors : ' *'
13
+ ...
Original file line number Diff line number Diff line change 37
37
CXX : clang++
38
38
run : |
39
39
./scripts/run-ci.sh
40
+
41
+ tidy :
42
+ env :
43
+ WITH_GRAPHICS : 1
44
+ WITH_X265 : 1
45
+ WITH_AOM : 1
46
+ WITH_DAV1D : 1
47
+ WITH_RAV1E : 1
48
+ WITH_LIBDE265 : 1
49
+ CMAKE : 1
50
+ CLANG_TIDY : 1
51
+ runs-on : ubuntu-20.04
52
+ steps :
53
+ - uses : actions/checkout@v2
54
+
55
+ - name : Install dependencies
56
+ run : |
57
+ ./scripts/install-ci-linux.sh
58
+ sudo apt install clang-tidy-12
59
+
60
+ - name : Prepare CI
61
+ run : |
62
+ ./scripts/prepare-ci.sh
63
+
64
+ - name : Run tests
65
+ run : |
66
+ ./scripts/run-ci.sh
67
+
68
+ - name : Run clang-tidy
69
+ run : |
70
+ run-clang-tidy-12 -j$(nproc)
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ if [ ! -z "$CMAKE" ]; then
133
133
if [ " $WITH_RAV1E " = " 1" ]; then
134
134
CMAKE_OPTIONS=" $CMAKE_OPTIONS -DUSE_LOCAL_RAV1E=1"
135
135
fi
136
+ if [ " $CLANG_TIDY " = " 1" ]; then
137
+ CMAKE_OPTIONS=" $CMAKE_OPTIONS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
138
+ fi
136
139
137
140
cmake . $CMAKE_OPTIONS
138
141
fi
@@ -141,7 +144,7 @@ if [ ! -z "$FUZZER" ] && [ "$CURRENT_OS" = "linux" ]; then
141
144
export ASAN_SYMBOLIZER=" $BUILD_ROOT /clang/bin/llvm-symbolizer"
142
145
fi
143
146
144
- if [ -z " $EMSCRIPTEN_VERSION " ] && [ -z " $CHECK_LICENSES " ] && [ -z " $TARBALL " ]; then
147
+ if [ -z " $EMSCRIPTEN_VERSION " ] && [ -z " $CHECK_LICENSES " ] && [ -z " $TARBALL " ] && [ -z " $CLANG_TIDY " ] ; then
145
148
echo " Building libheif ..."
146
149
make -j $( nproc)
147
150
if [ " $CURRENT_OS " = " linux" ] && [ -z " $CMAKE " ] && [ -z " $MINGW " ] && [ -z " $FUZZER " ]; then
You can’t perform that action at this time.
0 commit comments