Skip to content

Commit c0f6768

Browse files
committed
Run ClangTidy on GitHub Actions
See: sourcemeta/blaze#429 Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent d7a9398 commit c0f6768

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
@@ -154,3 +154,18 @@ jobs:
154154
alert-threshold: '5%'
155155
comment-always: true
156156
fail-on-alert: false
157+
158+
clang-tidy:
159+
runs-on: ubuntu-latest
160+
steps:
161+
- uses: actions/checkout@v4
162+
- run: cmake --version
163+
- run: >
164+
cmake -S . -B ./build
165+
-DCMAKE_BUILD_TYPE:STRING=Release
166+
-DSOURCEMETA_CORE_TESTS:BOOL=OFF
167+
-DSOURCEMETA_CORE_BENCHMARK:BOOL=OFF
168+
-DSOURCEMETA_CORE_DOCS:BOOL=OFF
169+
-DBUILD_SHARED_LIBS:BOOL=OFF
170+
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
171+
- run: cmake --build ./build --config Release --target clang_tidy

0 commit comments

Comments
 (0)