Skip to content

Commit 47e6a2c

Browse files
committed
Run ClangTidy on GitHub Actions
See: sourcemeta/blaze#429 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 5ff00f3 commit 47e6a2c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,18 @@ jobs:
161161
alert-threshold: '5%'
162162
comment-always: true
163163
fail-on-alert: false
164+
165+
clang-tidy:
166+
runs-on: ubuntu-latest
167+
steps:
168+
- uses: actions/checkout@v4
169+
- run: cmake --version
170+
- run: >
171+
cmake -S . -B ./build
172+
-DCMAKE_BUILD_TYPE:STRING=Release
173+
-DSOURCEMETA_CORE_TESTS:BOOL=OFF
174+
-DSOURCEMETA_CORE_BENCHMARK:BOOL=OFF
175+
-DSOURCEMETA_CORE_DOCS:BOOL=OFF
176+
-DBUILD_SHARED_LIBS:BOOL=OFF
177+
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
178+
- run: cmake --build ./build --config Release --target clang_tidy

0 commit comments

Comments
 (0)