Skip to content

Commit 910b3e3

Browse files
authored
skip self-hosted runners on forks (#2730)
1 parent 50fa315 commit 910b3e3

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/nightly.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
- uses: ./.github/actions/build-linux
5151

5252
build_mac_release:
53+
if: github.repository == 'ml-explore/mlx'
5354
strategy:
5455
matrix:
5556
python-version: ["3.10", "3.13"]
@@ -65,6 +66,7 @@ jobs:
6566
- uses: ./.github/actions/build-macos
6667

6768
build_cuda_with_tests:
69+
if: github.repository == 'ml-explore/mlx'
6870
runs-on: gpu-t4-4-core
6971
steps:
7072
- uses: actions/checkout@v5
@@ -74,6 +76,7 @@ jobs:
7476
- uses: ./.github/actions/build-cuda
7577

7678
build_cuda_release:
79+
if: github.repository == 'ml-explore/mlx'
7780
runs-on: ubuntu-22-large
7881
steps:
7982
- uses: actions/checkout@v5

‎.github/workflows/pull_request.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: ./.github/actions/build-linux
2222

2323
mac_build_and_test:
24+
if: github.repository == 'ml-explore/mlx'
2425
runs-on: [self-hosted, macos]
2526
needs: check_lint
2627
steps:
@@ -29,6 +30,7 @@ jobs:
2930
- uses: ./.github/actions/build-macos
3031

3132
cuda_build_and_test:
33+
if: github.repository == 'ml-explore/mlx'
3234
runs-on: gpu-t4-4-core
3335
needs: check_lint
3436
steps:
@@ -39,6 +41,7 @@ jobs:
3941
- uses: ./.github/actions/build-cuda
4042

4143
build_documentation:
44+
if: github.repository == 'ml-explore/mlx'
4245
runs-on: [self-hosted, macos]
4346
needs: check_lint
4447
steps:

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
run: echo "Publishing setup complete"
2121

2222
build_documentation:
23+
if: github.repository == 'ml-explore/mlx'
2324
runs-on: [self-hosted, macos]
2425
steps:
2526
- uses: actions/checkout@v5
@@ -40,6 +41,7 @@ jobs:
4041
uses: actions/deploy-pages@v4
4142

4243
build_linux_release:
44+
if: github.repository == 'ml-explore/mlx'
4345
strategy:
4446
matrix:
4547
python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
@@ -68,6 +70,7 @@ jobs:
6870
path: wheelhouse/mlx_cpu-*.whl
6971

7072
build_mac_release:
73+
if: github.repository == 'ml-explore/mlx'
7174
strategy:
7275
matrix:
7376
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -96,6 +99,7 @@ jobs:
9699
path: dist/mlx_metal-*.whl
97100

98101
build_cuda_release:
102+
if: github.repository == 'ml-explore/mlx'
99103
runs-on: ubuntu-22-large
100104
env:
101105
PYPI_RELEASE: 1

0 commit comments

Comments
 (0)