Update clang-tidy workflow

This commit is contained in:
sfan5 2023-12-23 14:20:24 +01:00
parent 961652c2e9
commit 094c433e58
2 changed files with 7 additions and 4 deletions

View File

@ -23,15 +23,18 @@ on:
- 'util/ci/**'
- '.github/workflows/**.yml'
env:
CLANG_TIDY: clang-tidy-15
jobs:
clang_tidy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
source ./util/ci/common.sh
install_linux_deps clang-tidy-9
install_linux_deps $CLANG_TIDY
- name: Run clang-tidy
run: |

View File

@ -3,11 +3,11 @@
cmake -B build -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DRUN_IN_PLACE=TRUE \
-DENABLE_{GETTEXT,SOUND}=FALSE \
-DENABLE_GETTEXT=FALSE \
-DBUILD_SERVER=TRUE
cmake --build build --target GenerateVersion
./util/ci/run-clang-tidy.py \
-clang-tidy-binary=clang-tidy-9 -p build \
-clang-tidy-binary=$CLANG_TIDY -p build \
-quiet -config="$(cat .clang-tidy)" \
'src/.*'