Only run macOS tests on `main` without opt-in (#14541)

These runners are expensive and have limited concurrency, let's just run
them on `main`.
This commit is contained in:
Zanie Blue 2025-07-10 08:53:27 -05:00 committed by GitHub
parent 042df4a7de
commit 1dff18897a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -232,7 +232,8 @@ jobs:
cargo-test-macos:
timeout-minutes: 15
needs: determine_changes
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
# Only run macOS tests on main without opt-in
if: ${{ contains(github.event.pull_request.labels.*.name, 'test:macos' || github.ref == 'refs/heads/main') }}
runs-on: macos-latest-xlarge # github-macos-14-aarch64-6
name: "cargo test | macos"
steps: