From b8ffac0b5502fb2a2c73f9acae98e042f98e846e Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Sat, 5 Dec 2026 22:45:05 +0000 Subject: [PATCH] CI: macOS build on the UCSLabs Mac for trusted runs Pushes and same-repository pull requests build on the self-hosted Mac (org runner group macos); fork pull requests keep GitHub's macos-15, so outside code never runs on it. Frees the org's five hosted macOS slots, which MailCraft shares. The check name is unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ac0d87..c7939da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,13 @@ jobs: fail-fast: false matrix: os: [ubuntu-24.04, macos-15] - runs-on: ${{ matrix.os }} + # macOS runs on UCSLabs' own Mac (org runner group `macos`) for pushes and branches of this + # repository; fork pull requests keep GitHub's macos-15, so outside code never runs on it. + # The check name stays `build (macos-15)` either way. release.yml stays on hosted runners. + runs-on: >- + ${{ matrix.os == 'macos-15' + && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) + && fromJSON('["self-hosted","macOS","ARM64"]') || matrix.os }} timeout-minutes: 60 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1