From 35535d582215d00ab1270ec2673e4fc3f5675b79 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 May 2020 09:47:25 -0700 Subject: CI: Another attempt to add clang-tidy. --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14c0ce4..cb205f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,9 +9,10 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v1 - name: clang-tidy check - uses: muxee/clang-tidy-action@0.0.1-rc1 + run: | linux: @@ -29,13 +30,19 @@ jobs: cpp: 'g++' env: CMAKE_OPTIONS: ${{ matrix.cmake_opts }} + CMAKE_CXX_CLANG_TIDY: "clang-tidy -checks=-*,readability-*" CC: ${{ matrix.compiler.c }} CXX: ${{ matrix.compiler.cpp }} + steps: - uses: actions/checkout@v1 - name: Install valgrind run: | sudo apt install -y valgrind + - name: Install clang-tidy + run: | + sudo apt-get install -y clang-tidy-9 + sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 100 - name: Build and test run: | make -- cgit v1.2.3