Introduce two new build that run on macOS Cirrus-CI instances. Those build the hypervisor using the elf cross-toolchain from Homebrew for both x86 and arm64.
Signed-off-by: Roger Pau Monné <[email protected]> --- I haven't added any randconfig jobs, we can consider adding those later on if the builds are stable. --- .cirrus.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 7bbb4f1c5c6c..b9608e71cca7 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,3 +1,5 @@ +## FreeBSD Build Jobs + # https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks freebsd_versions: &FREEBSD_VERSIONS env: @@ -122,7 +124,41 @@ task: path: xtf/tests/selftest/test-*-selftest type: application/octet-stream -# Test jobs +## macOS Build Jobs + +task: + name: 'macOS: hypervisor build' + + env: + matrix: + ARCH: x86_64 + ARCH: aarch64 + + alias: macos-$ARCH + macos_instance: + image: ghcr.io/cirruslabs/macos-runner:sonoma + + environment: + CIRRUS_CLONE_DEPTH: 1 + CIRRUS_LOG_TIMESTAMP: true + + install_script: + - brew install $ARCH-elf-gcc $ARCH-elf-binutils + + build_script: + - make -j`sysctl -n hw.ncpu` + XEN_TARGET_ARCH=`echo $ARCH | sed -e s/aarch64/arm64/` + CROSS_COMPILE=$ARCH-elf- HOSTCC=clang -C xen + + xen_artifacts: + path: xen/xen + type: application/octet-stream + + debug_artifacts: + path: xen/xen-syms + type: application/octet-stream + +## Test Jobs task: name: 'FreeBSD: XTF selftest' -- 2.51.0
