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