diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2cfe78e754..d4468c12d7 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -50,6 +50,7 @@ jobs: - uses: ./.github/actions/build-linux build_mac_release: + if: github.repository == 'ml-explore/mlx' strategy: matrix: python-version: ["3.10", "3.13"] @@ -65,6 +66,7 @@ jobs: - uses: ./.github/actions/build-macos build_cuda_with_tests: + if: github.repository == 'ml-explore/mlx' runs-on: gpu-t4-4-core steps: - uses: actions/checkout@v5 @@ -74,6 +76,7 @@ jobs: - uses: ./.github/actions/build-cuda build_cuda_release: + if: github.repository == 'ml-explore/mlx' runs-on: ubuntu-22-large steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d86ed307e0..aae9edb88a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -21,6 +21,7 @@ jobs: - uses: ./.github/actions/build-linux mac_build_and_test: + if: github.repository == 'ml-explore/mlx' runs-on: [self-hosted, macos] needs: check_lint steps: @@ -29,6 +30,7 @@ jobs: - uses: ./.github/actions/build-macos cuda_build_and_test: + if: github.repository == 'ml-explore/mlx' runs-on: gpu-t4-4-core needs: check_lint steps: @@ -39,6 +41,7 @@ jobs: - uses: ./.github/actions/build-cuda build_documentation: + if: github.repository == 'ml-explore/mlx' runs-on: [self-hosted, macos] needs: check_lint steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdd3c4df55..9f2ae05f0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,7 @@ jobs: run: echo "Publishing setup complete" build_documentation: + if: github.repository == 'ml-explore/mlx' runs-on: [self-hosted, macos] steps: - uses: actions/checkout@v5 @@ -40,6 +41,7 @@ jobs: uses: actions/deploy-pages@v4 build_linux_release: + if: github.repository == 'ml-explore/mlx' strategy: matrix: python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"] @@ -68,6 +70,7 @@ jobs: path: wheelhouse/mlx_cpu-*.whl build_mac_release: + if: github.repository == 'ml-explore/mlx' strategy: matrix: python-version: ["3.10", "3.11", "3.12", "3.13"] @@ -96,6 +99,7 @@ jobs: path: dist/mlx_metal-*.whl build_cuda_release: + if: github.repository == 'ml-explore/mlx' runs-on: ubuntu-22-large env: PYPI_RELEASE: 1