Skip to content

Commit 4089682

Browse files
committed
ci: use Clang 22 in tidy task
Added -config-file as otherwise run-clang-tidy no-longer seemed able to find the config file.
1 parent 7ea076f commit 4089682

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ci/test/00_setup_env_native_tidy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8
88

99
export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:24.04"
1010
export CONTAINER_NAME=ci_native_tidy
11-
export TIDY_LLVM_V="21"
11+
export TIDY_LLVM_V="22"
1212
export APT_LLVM_V="${TIDY_LLVM_V}"
1313
export PACKAGES="clang-${TIDY_LLVM_V} libclang-${TIDY_LLVM_V}-dev llvm-${TIDY_LLVM_V}-dev libomp-${TIDY_LLVM_V}-dev clang-tidy-${TIDY_LLVM_V} jq libevent-dev libboost-dev libzmq3-dev systemtap-sdt-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools libqrencode-dev libsqlite3-dev libcapnp-dev capnproto"
1414
export NO_DEPENDS=1

ci/test/03_test_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ if [ "${RUN_TIDY}" = "true" ]; then
174174
mv tmp.json "${BASE_BUILD_DIR}/compile_commands.json"
175175

176176
cd "${BASE_BUILD_DIR}/src/"
177-
if ! ( run-clang-tidy-"${TIDY_LLVM_V}" -quiet -load="/tidy-build/libbitcoin-tidy.so" "${MAKEJOBS}" | tee tmp.tidy-out.txt ); then
177+
if ! ( run-clang-tidy-"${TIDY_LLVM_V}" -config-file="${BASE_ROOT_DIR}/src/.clang-tidy" -quiet -load="/tidy-build/libbitcoin-tidy.so" "${MAKEJOBS}" | tee tmp.tidy-out.txt ); then
178178
grep -C5 "error: " tmp.tidy-out.txt
179179
echo "^^^ ⚠️ Failure generated from clang-tidy"
180180
false

0 commit comments

Comments
 (0)