CI: dont run aarch64-mac workflow on forks

The workflow uses a self hosted runner which is only available for
hexops/mach* repositories. Without this commit, whenever a fork of mach
or mach-* were pushed, it would queue an aarch64-mac job and then crash
after one day due to no machines being found.
This commit is contained in:
iddev5 2022-04-19 17:54:06 +05:30 committed by Stephen Gutekanst
parent fde336736d
commit bb65083561
3 changed files with 3 additions and 0 deletions

View file

@ -9,6 +9,7 @@ on:
- push - push
jobs: jobs:
aarch64-macos: aarch64-macos:
if: github.repository == 'hexops/mach'
runs-on: [self-hosted, macOS, ARM64] runs-on: [self-hosted, macOS, ARM64]
strategy: strategy:
matrix: matrix:

View file

@ -9,6 +9,7 @@ on:
- push - push
jobs: jobs:
aarch64-macos: aarch64-macos:
if: github.repository == 'hexops/mach-glfw'
runs-on: [self-hosted, macOS, ARM64] runs-on: [self-hosted, macOS, ARM64]
defaults: defaults:
run: run:

View file

@ -7,6 +7,7 @@ on:
jobs: jobs:
aarch64-macos: aarch64-macos:
if: ${{ github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: github.repository == 'hexops/mach-gpu-dawn'
runs-on: [self-hosted, macOS, ARM64] runs-on: [self-hosted, macOS, ARM64]
defaults: defaults:
run: run: