File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 4646 CC : clang
4747 CXX : clang++
4848 run : |
49- mkdir -p build && cd build
5049 echo "Running cmake..."
51- cmake .. \
50+ cmake -B build \
5251 -DCMAKE_CXX_STANDARD=14 \
5352 -DWITH_STL=CXX14 \
5453 -DWITH_OTLP_HTTP=ON \
@@ -62,13 +61,11 @@ jobs:
6261 -DBUILD_W3CTRACECONTEXT_TEST=ON \
6362 -DWITH_METRICS_EXEMPLAR_PREVIEW=ON \
6463 -DWITH_ASYNC_EXPORT_PREVIEW=ON \
65- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
66- -DCMAKE_CXX_CLANG_TIDY="clang-tidy"
64+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
6765
6866 - name : Run clang-tidy
6967 run : |
70- cd build
71- make 2>&1 | tee -a clang-tidy.log || exit 1
68+ clang-tidy -p build $(jq -r .[].file build/compile_commands.json) 2>&1 | tee -a clang-tidy.log
7269
7370 - uses : actions/upload-artifact@v4
7471 with :
7774
7875 - name : Count warnings
7976 run : |
80- cd build
8177 COUNT=$(grep -c "warning:" clang-tidy.log)
8278 echo "clang-tidy reported ${COUNT} warning(s)"
8379
84- # TODO: include WITH_OTLP_GRPC and WITH_ABSEIL flags.
80+ # TODO: include WITH_OTLP_GRPC and WITH_ABSEIL flags.
You can’t perform that action at this time.
0 commit comments