|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] CI: gate macos build jobs with MACOS_JOBS variable
commit 5255cfcddb1df883988c438db76406e0f67e0ad9
Author: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
AuthorDate: Wed Aug 5 16:55:41 2026 +0200
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Nov 25 14:20:22 2026 +0000
CI: gate macos build jobs with MACOS_JOBS variable
The macos runners have limited availability (they aren't enabled for all
repositories, and have a monthly usage limit). Do not schedule macos
build jobs unless explicitly enabled with MACOS_JOBS=true variable.
Note: just setting the variable is not enough to have macos builds,
relevant runners need to be enabled too. Unfortunately there isn't any
built-in variable signaling runners availability.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
automation/gitlab-ci/build.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index 3d37e0b572..94359febda 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -13,7 +13,7 @@
- '*/*.log'
when: always
needs: []
- rules:
+ rules: &build-rules
- if: $BUILD_FOR_TESTS_ONLY
when: never
- if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY
@@ -814,6 +814,10 @@ debian-13-riscv64-gcc-randconfig:
# macOS build jobs
.macos-26:
<<: *build
+ rules:
+ - if: $MACOS_JOBS != true
+ when: never
+ - *build-rules
tags:
- saas-macos-medium-m1
image: macos-26-xcode-26
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |