From bf9813a7c6d8c547817c6af95bcd6fd372c8e55d Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 30 Apr 2025 16:46:17 -0700 Subject: [PATCH] CI: Add new task to run clang-tidy as part of nightly builds --- .cirrus.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index cad43aa3fc..ad4670623d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -19,6 +19,7 @@ asan_sanitizer_config: &ASAN_SANITIZER_CONFIG --build-type=debug --disable-broke ubsan_sanitizer_config: &UBSAN_SANITIZER_CONFIG --build-type=debug --disable-broker-tests --sanitizers=undefined --enable-fuzzers --ccache --enable-werror tsan_sanitizer_config: &TSAN_SANITIZER_CONFIG --build-type=debug --disable-broker-tests --sanitizers=thread --enable-fuzzers --ccache --enable-werror macos_config: &MACOS_CONFIG --build-type=release --disable-broker-tests --prefix=$CIRRUS_WORKING_DIR/install --ccache --enable-werror --with-krb5=/opt/homebrew/opt/krb5 +clang_tidy_config: &CLANG_TIDY_CONFIG --build-type=debug --disable-broker-tests --prefix=$CIRRUS_WORKING_DIR/install --ccache --enable-werror --enable-clang-tidy resources_template: &RESOURCES_TEMPLATE cpu: *CPUS @@ -304,6 +305,24 @@ ubuntu24_clang_libcpp_task: CXX: clang++-19 CXXFLAGS: -stdlib=libc++ +ubuntu24_clang_tidy_task: + container: + # Ubuntu 24.04 EOL: Jun 2029 + dockerfile: ci/ubuntu-24.04/Dockerfile + << : *RESOURCES_TEMPLATE + << : *CI_TEMPLATE + # Run on merges to master and release/.* and benchmark-nightly cron. + only_if: > + ( $CIRRUS_REPO_NAME == 'zeek' || $CIRRUS_REPO_NAME == 'zeek-security' ) && + $CIRRUS_BRANCH == 'master' || + $CIRRUS_BRANCH =~ 'release/.*' || + $CIRRUS_CRON == 'benchmark-nightly' + env: + CC: clang-19 + CXX: clang++-19 + ZEEK_CI_CONFIGURE_FLAGS: *CLANG_TIDY_CONFIG + + ubuntu22_task: container: # Ubuntu 22.04 EOL: June 2027