[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] cirrus-ci: add x86 and arm64 macOS hypervisor builds
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Wed, 11 Feb 2026 11:46:37 +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=IgZKCb8oMsGXmHnlsJcSSEoWAZyvWv58fX15xLl25zm+t2L9p/ZOUB0rb9GqpbHoP9seNGyzZhYAdL4POZEjY0y3vZmG84Ytf2/G06z90W/JE5OKtQed7vVLjzTDTt++KceRg8z5YS4A/KB11Rgtaqzfsm3hDbU6eXaxV6/+f13UqNzDFwDO+pP3iyqFSMk5OSt5KDffRKNLBiGXsVKascU8KFuQsHw2XmIiPZPnWO7ZqoOcXRUYMAGndhtRStWbSDrlM5iTuLwm1lr9tC99uf4DRaJxHX7lTC/gaLhitzW4hxGruyEmWZ6lp4ARi5PavwNOykEbgx4XcoYDR9YzYw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NywdI0C5+006Uh03nJwN3KS+aPxwxcYZPDqwNh1qPyUNTIB6diSZfkGkcijwRUOHrZjDDj4LTKewbZqZ++RUOR4lZNKPpCsb1ZEeIMygH3y73bxVL4xR5O+q/T6VR6KwA4N9C0f7dBloSIheKWjCURgxa+m5iLyRAPKhYcL4MQPlIgqwmWAUEOlXIq5CqaH3nsSj7jdjMXyviJGI6FTr+GM9AVtJwcm4gOnS5yjsvhWV9MBoAH1UMOwXT0aBo8/JLirixGUfiif+JtjUuqYrE5NKeRgjumTDRbtTgFIJqursjtWTphSfoXkvkEv0h+nniUntv1I1NuJXsewExtvGJg==
- 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: Wed, 11 Feb 2026 10:47:12 +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
|