Skip to content

Commit e32a855

Browse files
armandasbblanchon
authored andcommitted
CI: added clang-tidy (closes #1577)
1 parent 9bcb409 commit e32a855

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,20 @@ jobs:
362362
- name: MemoryChecker.*.log
363363
run: cat Testing/Temporary/MemoryChecker.*.log
364364
if: failure()
365+
366+
clang-tidy:
367+
needs: clang
368+
name: Clang-Tidy
369+
runs-on: ubuntu-20.04
370+
steps:
371+
- name: Install
372+
run: sudo apt-get install -y clang-tidy cmake ninja-build
373+
- name: Checkout
374+
uses: actions/checkout@v2
375+
- name: Configure
376+
run: cmake -G Ninja -DCMAKE_CXX_CLANG_TIDY="clang-tidy-10;--warnings-as-errors=*" -DCMAKE_BUILD_TYPE=Debug .
377+
env:
378+
CC: clang-10
379+
CXX: clang++-10
380+
- name: Check
381+
run: cmake --build . -- -k 0

0 commit comments

Comments
 (0)