[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] automation/gitlab: introduce macOS build jobs


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 23 Apr 2026 21:04:59 +0200
  • 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=TT4SKwuDeacSLN/BvcsFT0MhedM6/CopzU9IpsvlNhU=; b=XUjUCpT4ct2aRuTFZU7xb3jS7H8wsufv9Co5mixYYzyObF8XZQfWMpLIAhuMg6iJpVWlVnApowUJR0KYVgrw7KXjDQ2i/Z1fFzOcUnzoghr9QxMx3Q2ezxdJPjobWSkB5GaRl3s6cULjQoCfcyp4NUzgLj3UKozD6WjpiYnWEgHRo6QbP0hif40eZOKBIZs3VxN5JomMvZujXXPPkTdW1krL9nI/B27w9IlsJxsTJ0ikWq0nkt/PG3VtW+qHuae8P7JuXmaDOOFFL/45q4xZZ/7UvMvzW2ClqNFL3YYhRFqNWFGIaefDQnWDEY+/sJ2dlrOFW7InByq3tD127e7zPQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D/lqSSAD1xhAl+wcPEE2LSIyfroVauP8Bny0zSEvtHkzd/Lm0MbzC29lnv0qw/oZDVTFssrXWZ7WOhN2wUgr0RGgqk2zUx8doAmY3GZe5nAeuy5RJdHbO+mqvB0wBbBtXUFuyNw0SzPhBM/tbTVqjc0rSStox/XFiFfOndPKKcw/z2tU21HwqYjx4w5LAjg1V4dj/IaeqRz6WqevKd4u+CC4PT+F+wK9FVxsSopTM8hTnhVmPVSxLTALuVD4DJTot8QEreDrG8iQhCfEKonwpTzQtoEBp5eiU29AzVkHWg/YW3S0UC6oh5M+DDoARBUZRv3xz5ldGnGkDkOny8iOLw==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Bertrand Marquis <bertrand.marquis@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 23 Apr 2026 19:05:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

With the imminent decommission of CirrusCI we will lose the limited macOS
build testing done there.  Introduce two Gitlab macOS build jobs that
reproduce the ones present on CirrusCI.

According to the "Community programs" Gitlab documentation [0] we get
50,000 compute minutes per month.  The arm64 job takes ~1m 15s, and the
x86_64 one ~2m.  I think it's likely enough given the amount of minutes we
have available.  We might need to reconsider if we add more tasks that
consume compute minutes.

[0] 
https://docs.gitlab.com/subscriptions/community_programs/#gitlab-for-open-source

Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
Example jobs at:

https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14064832403
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14064832402
---
 automation/gitlab-ci/build.yaml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index eff96beaa5c3..463ed2f96d86 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -815,3 +815,33 @@ debian-13-riscv64-gcc-randconfig:
     KBUILD_DEFCONFIG: tiny64_defconfig
     RANDCONFIG: y
     <<: *riscv-fixed-randconfig
+
+# macOS build jobs
+.macos-26:
+  <<: *build
+  tags:
+    - saas-macos-medium-m1
+  image: macos-26-xcode-26
+  variables:
+    HOMEBREW_NO_AUTO_UPDATE: 1
+    HOSTCC: clang
+    HYPERVISOR_ONLY: y
+    <<: *gcc
+  script:
+    - brew install ${CROSS_COMPILE}gcc ${CROSS_COMPILE}binutils
+    - alias nproc="sysctl -n hw.ncpu"
+    - ./automation/scripts/build 2>&1 | tee build.log
+
+macos-26-x86_64:
+  extends:
+    - .macos-26
+  variables:
+    XEN_TARGET_ARCH: x86_64
+    CROSS_COMPILE: x86_64-elf-
+
+macos-26-arm64:
+  extends:
+    - .macos-26
+  variables:
+    XEN_TARGET_ARCH: arm64
+    CROSS_COMPILE: aarch64-elf-
-- 
2.53.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.