Skip to content

Commit

Permalink
CI: Run linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed May 13, 2020
1 parent b1dab73 commit 2d55154
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -11,8 +11,16 @@ jobs:
steps:

- uses: actions/checkout@v1
- name: clang-tidy check
- 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: lint with clang-tidy
run: |
make lint
env:
CC: clang
CXX: clang++

linux:

Expand All @@ -30,7 +38,6 @@ 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 }}

Expand All @@ -39,10 +46,6 @@ jobs:
- 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
Expand Down

0 comments on commit 2d55154

Please sign in to comment.