From e32a8552bea7f77db2453fdc591dde4f5c6a5caf Mon Sep 17 00:00:00 2001 From: Armandas Date: Fri, 4 Jun 2021 09:18:31 +0200 Subject: [PATCH] CI: added clang-tidy (closes #1577) --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e516c9bf..a3577c80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -362,3 +362,20 @@ jobs: - name: MemoryChecker.*.log run: cat Testing/Temporary/MemoryChecker.*.log if: failure() + + clang-tidy: + needs: clang + name: Clang-Tidy + runs-on: ubuntu-20.04 + steps: + - name: Install + run: sudo apt-get install -y clang-tidy cmake ninja-build + - name: Checkout + uses: actions/checkout@v2 + - name: Configure + run: cmake -G Ninja -DCMAKE_CXX_CLANG_TIDY="clang-tidy-10;--warnings-as-errors=*" -DCMAKE_BUILD_TYPE=Debug . + env: + CC: clang-10 + CXX: clang++-10 + - name: Check + run: cmake --build . -- -k 0