mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
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:
commit
83c914ce2d
4 changed files with 60 additions and 1 deletions
28
.cirrus.yml
28
.cirrus.yml
|
@ -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
|
||||||
|
|
4
CHANGES
4
CHANGES
|
@ -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)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
8.0.0-dev.705
|
8.0.0-dev.707
|
||||||
|
|
27
ci/opensuse-tumbleweed/prepare-weekly.sh
Executable file
27
ci/opensuse-tumbleweed/prepare-weekly.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue