forked from Mirrorlandia_minetest/minetest
master #6
7
.github/workflows/cpp_lint.yml
vendored
7
.github/workflows/cpp_lint.yml
vendored
@ -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: |
|
||||
|
@ -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/.*'
|
||||
|
Loading…
Reference in New Issue
Block a user