ci: only run self-hosted ci on apple runners (#3468)

Limit Darwin Job execution to apple org.

### Motivation:

When the repo is forked, the forks do not have access to the self-hosted
CI, so it should not block actions in the forked environment.

### Modifications:

Conditionalize Darwin job execution.

### Result:

macOS CI will not queue on forks.
This commit is contained in:
Mike Drob authored and GitHub committed 2025-12-23 08:11:06 +00:00
1 parent 1268babbc1
commit 92a262f376
1 file changed
+1
+1
View File
@@ -425,6 +425,7 @@ jobs:
darwin-job:
name: ${{ matrix.config.name }}
needs: construct-matrix
if: github.repository_owner == 'apple'
runs-on: [self-hosted, macos, "${{ matrix.config.os }}", "${{ matrix.config.arch }}", "${{ matrix.config.pool }}"]
timeout-minutes: 30
strategy: