Merge remote-tracking branch 'origin/topic/timw/ci-weekly-compiler-task'

* origin/topic/timw/ci-weekly-compiler-task:
  CI: Add weekly task for running builds with newest compilers
This commit is contained in:
Tim Wojtulewicz 2025-07-23 08:21:17 -07:00
commit 83c914ce2d
4 changed files with 60 additions and 1 deletions

View file

@ -273,6 +273,34 @@ opensuse_tumbleweed_task:
<< : *CI_TEMPLATE << : *CI_TEMPLATE
# << : *SKIP_TASK_ON_PR # << : *SKIP_TASK_ON_PR
weekly_current_gcc_task:
container:
# Opensuse Tumbleweed has no EOL
dockerfile: ci/opensuse-tumbleweed/Dockerfile
<< : *RESOURCES_TEMPLATE
prepare_script: ./ci/opensuse-tumbleweed/prepare-weekly.sh
<< : *CI_TEMPLATE
only_if: >
( $CIRRUS_REPO_NAME == 'zeek' || $CIRRUS_REPO_NAME == 'zeek-security' ) &&
$CIRRUS_BRANCH == 'master' ||
$CIRRUS_CRON == 'weekly'
env:
ZEEK_CI_COMPILER: gcc
weekly_current_clang_task:
container:
# Opensuse Tumbleweed has no EOL
dockerfile: ci/opensuse-tumbleweed/Dockerfile
<< : *RESOURCES_TEMPLATE
prepare_script: ./ci/opensuse-tumbleweed/prepare-weekly.sh
<< : *CI_TEMPLATE
only_if: >
( $CIRRUS_REPO_NAME == 'zeek' || $CIRRUS_REPO_NAME == 'zeek-security' ) &&
$CIRRUS_BRANCH == 'master' ||
$CIRRUS_CRON == 'weekly'
env:
ZEEK_CI_COMPILER: clang
ubuntu24_10_task: ubuntu24_10_task:
container: container:
# Ubuntu 24.10 EOL: 2025-07-30 # Ubuntu 24.10 EOL: 2025-07-30

View file

@ -1,3 +1,7 @@
8.0.0-dev.707 | 2025-07-23 08:21:17 -0700
* CI: Add weekly task for running builds with newest compilers (Tim Wojtulewicz, Corelight)
8.0.0-dev.705 | 2025-07-23 08:20:30 -0700 8.0.0-dev.705 | 2025-07-23 08:20:30 -0700
* Output more information when cloning repos for include_plugins CI task (Tim Wojtulewicz, Corelight) * Output more information when cloning repos for include_plugins CI task (Tim Wojtulewicz, Corelight)

View file

@ -1 +1 @@
8.0.0-dev.705 8.0.0-dev.707

View file

@ -0,0 +1,27 @@
#!/bin/sh
zypper refresh
zypper patch -y --with-update --with-optional
LATEST_VERSION=$(zypper search -n ${ZEEK_CI_COMPILER} |
awk -F "|" "match(\$2, / ${ZEEK_CI_COMPILER}([0-9]{2})[^-]/, a) {print a[1]}" |
sort | tail -1)
echo "Installing ${ZEEK_CI_COMPILER} ${LATEST_VERSION}"
zypper install -y "${ZEEK_CI_COMPILER}${LATEST_VERSION}"
if [ "${ZEEK_CI_COMPILER}" == "gcc" ]; then
zypper install -y "${ZEEK_CI_COMPILER}${LATEST_VERSION}-c++"
fi
update-alternatives --install /usr/bin/cc cc "/usr/bin/${ZEEK_CI_COMPILER}-${LATEST_VERSION}" 100
update-alternatives --set cc "/usr/bin/${ZEEK_CI_COMPILER}-${LATEST_VERSION}"
if [ "${ZEEK_CI_COMPILER}" == "gcc" ]; then
update-alternatives --install /usr/bin/c++ c++ "/usr/bin/g++-${LATEST_VERSION}" 100
update-alternatives --set c++ "/usr/bin/g++-${LATEST_VERSION}"
else
update-alternatives --install /usr/bin/c++ c++ "/usr/bin/clang++-${LATEST_VERSION}" 100
update-alternatives --set c++ "/usr/bin/clang++-${LATEST_VERSION}"
fi