ci: add clazy (#6623)

Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2025-12-06 12:59:41 +01:00
committed by GitHub
parent 7dbc73e84d
commit 71d579fc58
4 changed files with 15 additions and 1 deletions
+9
View File
@@ -2,6 +2,10 @@
set -ev;
CLANG_TIDY_VERSION=21
CLAZY_VERSION=v1.16
CLAZY_CLANG_TIDY_HASH=6ef467f518304955ef031fb74e74fa16349361919172c7f0fb622dcf4b4b7030
# aqt installs into .qtinstall/Qt/<version>/gcc_64
# This is doing the same as jurplel/install-qt-action
# See https://github.com/jurplel/install-qt-action/blob/74ca8cd6681420fc8894aed264644c7a76d7c8cb/action/src/main.ts#L52-L74
@@ -22,6 +26,11 @@ cmake -S. -Bbuild-clang-tidy \
-DBUILD_TESTS=On \
-DBUILD_BENCHMARKS=On
curl -sSLo build-clang-tidy/clazy.zip \
https://github.com/Nerixyz/clazy-ubuntu-builds/releases/download/ci/clazy-$CLAZY_VERSION-clang$CLANG_TIDY_VERSION.zip
echo "$CLAZY_CLANG_TIDY_HASH build-clang-tidy/clazy.zip" | sha256sum --check --status
unzip build-clang-tidy/clazy.zip -d /usr/lib
# Run MOC and UIC
# This will compile the dependencies
# Get the targets using `ninja -t targets | grep autogen`