Skip to content

Commit

Permalink
Use clang(-tidy)-15.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhuggett committed May 2, 2024
1 parent 619251c commit 193c4b0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/codacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
CCT_OUT: /tmp/cct-out

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'True'
submodules: True

- name: Download the codacy-clang-tidy tool
env:
Expand All @@ -31,17 +31,22 @@ jobs:
curl -L "${{ env.CCT_DOWNLOAD_URL }}" -o "$HOME/cct/${{ env.CCT }}"
chmod +x "$HOME/cct/${{ env.CCT }}"
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake
- name: Configure
run: |
cmake -S . \
-B build \
-D CMAKE_EXPORT_COMPILE_COMMANDS=Yes \
-D CMAKE_C_COMPILER=clang-12 \
-D CMAKE_CXX_COMPILER=clang++-12
-D CMAKE_C_COMPILER=clang-15 \
-D CMAKE_CXX_COMPILER=clang++-15
- name: Run clang-tidy
run: |
clang-tidy-12 -extra-arg=-std=c++17 \
clang-tidy-15 -extra-arg=-std=c++17 \
-extra-arg=-DNDEBUG \
-p=build/compile_commands.json \
./*.?pp \
Expand Down

0 comments on commit 193c4b0

Please sign in to comment.