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/**'
|
- 'util/ci/**'
|
||||||
- '.github/workflows/**.yml'
|
- '.github/workflows/**.yml'
|
||||||
|
|
||||||
|
env:
|
||||||
|
CLANG_TIDY: clang-tidy-15
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clang_tidy:
|
clang_tidy:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
source ./util/ci/common.sh
|
source ./util/ci/common.sh
|
||||||
install_linux_deps clang-tidy-9
|
install_linux_deps $CLANG_TIDY
|
||||||
|
|
||||||
- name: Run clang-tidy
|
- name: Run clang-tidy
|
||||||
run: |
|
run: |
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
cmake -B build -DCMAKE_BUILD_TYPE=Debug \
|
cmake -B build -DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DRUN_IN_PLACE=TRUE \
|
-DRUN_IN_PLACE=TRUE \
|
||||||
-DENABLE_{GETTEXT,SOUND}=FALSE \
|
-DENABLE_GETTEXT=FALSE \
|
||||||
-DBUILD_SERVER=TRUE
|
-DBUILD_SERVER=TRUE
|
||||||
cmake --build build --target GenerateVersion
|
cmake --build build --target GenerateVersion
|
||||||
|
|
||||||
./util/ci/run-clang-tidy.py \
|
./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)" \
|
-quiet -config="$(cat .clang-tidy)" \
|
||||||
'src/.*'
|
'src/.*'
|
||||||
|
Loading…
Reference in New Issue
Block a user