[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/5] cirrus-ci: add x86 and arm64 macOS hypervisor builds
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Thu, 12 Feb 2026 15:46:17 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Xl0n5YtzEuDOR9roRgv/CaNdsWXGPUlwSYblNz8/sOQ=; b=ux07suoiVIQ8TJqH5Q64tE/iiU05PaX2H7qJ5YE4/mzUCowls/UZC7SzcHpdzHxyq9zEUuGidP2KvW+zTz9F5E1NPT3F9XQSY4IscQdz5UlFE0af6n+hRFxWL4ne9JMSAMTkUkduR1HrsGTqUkifvgshUTx4DXvin70M93Eolx4rXhyuhteaqx67RMSUBoUbHuPym9Y2af86sicX/OLomm8VWjLMz682rmoyEKEfFcHMXzf3enGhHclDUNXOxfHRNZWw4SpDlIWUFTF4w4yCCh+OIap+4fUCEn/GdN5nRdfn6FxU1lV8w7CpQKIGreXz0OGtbb99kynMvWJRR3uF2Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MCmtimCwdiISnyQrMTgGs4Zett2/SiDrzt2Xw4DarOKL8e5SBJwBDRTldnauUrbDFafWUGzu0GAuR3NukcJ6yMkAs54jzjM3xaJy9P2+9NhudxWMr5KuloWA+Ud7lWqZYUmtEFd0Dwx6zDiFGiNaQcJ20iwpgcFKb2Ac58U7lHQ68bsGEOjCYVRmOkofc0Q1KdjhpoyOU91uwCJHSJheWJvPoOsgpTiFeZBQ5OYKEvKGEQ8X3TJ0PByTGTVTfJmAdwqrXWXOUf/NX9hkCy2YFEDwzQpDbqWzmMO80rSYvModiWog/0ukMg/vqP7P7kC+k6VQOEO7IWOSSv4Jq3dmzQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Thu, 12 Feb 2026 14:46:41 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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é <roger.pau@xxxxxxxxxx>
---
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
|