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:
parent
fde336736d
commit
bb65083561
3 changed files with 3 additions and 0 deletions
1
.github/workflows/m1_ci.yml
vendored
1
.github/workflows/m1_ci.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
1
glfw/.github/workflows/m1_ci.yml
vendored
1
glfw/.github/workflows/m1_ci.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
1
gpu-dawn/.github/workflows/m1_ci.yml
vendored
1
gpu-dawn/.github/workflows/m1_ci.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue