summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-05-13 09:47:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-05-13 09:47:25 -0700
commit35535d582215d00ab1270ec2673e4fc3f5675b79 (patch)
tree41ccb1002a28ab91808a980ad9c682dd1e92e1ac
parent5a13e06b02755b1d75192d5d00b054437f0e13c3 (diff)
CI: Another attempt to add clang-tidy.
-rw-r--r--.github/workflows/ci.yml9
1 files changed, 8 insertions, 1 deletions
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