Merge remote-tracking branch 'origin/topic/timw/2578-cirrus-ventura'

* origin/topic/timw/2578-cirrus-ventura:
  CI: avoid doing Windows builds with every push
  CI: drop macOS Big Sur, add macOS Ventura
This commit is contained in:
Tim Wojtulewicz 2023-01-03 12:09:10 -07:00
commit 9abe00019d
4 changed files with 23 additions and 7 deletions

View file

@ -51,7 +51,7 @@ sanitizers_resource_template: &SANITIZERS_RESOURCE_TEMPLATE
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
greedy: true
ci_template: &CI_TEMPLATE
branch_whitelist: &BRANCH_WHITELIST
# Rules for skipping builds:
# - Don't do darwin builds on zeek-security repo because they use up a ton of compute credits.
# - Always build PRs, but not if they come from dependabot
@ -66,6 +66,9 @@ ci_template: &CI_TEMPLATE
)
) )
ci_template: &CI_TEMPLATE
<< : *BRANCH_WHITELIST
# Default timeout is 60 minutes, Cirrus hard limit is 120 minutes for free
# tasks, so may as well ask for full time.
timeout_in: 120m
@ -264,16 +267,16 @@ alpine_task:
# Apple doesn't publish official long-term support timelines.
# We aim to support both the current and previous macOS release.
macos_monterey_task:
macos_ventura_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
image: ghcr.io/cirruslabs/macos-ventura-base:latest
prepare_script: ./ci/macos/prepare.sh
<< : *CI_TEMPLATE
<< : *MACOS_ENVIRONMENT
macos_big_sur_task:
macos_monterey_task:
macos_instance:
image: big-sur-xcode-12.5
image: ghcr.io/cirruslabs/macos-monterey-base:latest
prepare_script: ./ci/macos/prepare.sh
<< : *CI_TEMPLATE
<< : *MACOS_ENVIRONMENT
@ -384,3 +387,4 @@ windows_task:
ZEEK_CI_CPUS: 8
# Give verbose error output on a test failure.
CTEST_OUTPUT_ON_FAILURE: 1
<< : *BRANCH_WHITELIST

View file

@ -1,3 +1,9 @@
5.2.0-dev.442 | 2023-01-03 12:09:10 -0700
* CI: avoid doing Windows builds with every push (Tim Wojtulewicz, Corelight)
* CI: drop macOS Big Sur, add macOS Ventura (Tim Wojtulewicz, Corelight)
5.2.0-dev.437 | 2022-12-16 08:16:30 -0700
* GH-2637: Re-remove the bro symlink wrapper (Tim Wojtulewicz, Corelight)

View file

@ -1 +1 @@
5.2.0-dev.439
5.2.0-dev.442

View file

@ -51,7 +51,13 @@ if [[ -n "${CIRRUS_CI}" ]] && [[ "${CIRRUS_REPO_OWNER}" == "zeek" ]] && [[ ! -d
banner "Trying to clone zeek-testing-private git repo"
echo "${ZEEK_TESTING_PRIVATE_SSH_KEY}" >cirrus_key.b64
base64 -d cirrus_key.b64 >cirrus_key
if [ "${CIRRUS_TASK_NAME}" == "macos_ventura" ]; then
# The base64 command provided with macOS Ventura requires an argument
# to pass the input filename
base64 -d -i cirrus_key.b64 >cirrus_key
else
base64 -d cirrus_key.b64 >cirrus_key
fi
rm cirrus_key.b64
chmod 600 cirrus_key
git --version