From 7820dc60a7d0b4e6247892d982c70d26723ce411 Mon Sep 17 00:00:00 2001 From: R0CKSTAR Date: Sat, 4 Jul 2026 00:43:00 +0800 Subject: [PATCH] [Apple Silicon] Add labeler config (#29908) Signed-off-by: Xiaodong Ye --- .github/labeler.yml | 10 ++++++++++ .github/workflows/pr-test-mlx.yml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index ad3b7f2a9..21a07d908 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -122,3 +122,13 @@ mthreads: - any-glob-to-any-file: - '**/*mthreads*' - '**/*musa*' + - '**/musa/**' + +# Apple Silicon specific +apple-silicon: + - changed-files: + - any-glob-to-any-file: + - '**/*metal*' + - '**/*mlx*' + - '**/mlx/**' + - '**/*mps*' diff --git a/.github/workflows/pr-test-mlx.yml b/.github/workflows/pr-test-mlx.yml index 607c0f605..830a57ab3 100644 --- a/.github/workflows/pr-test-mlx.yml +++ b/.github/workflows/pr-test-mlx.yml @@ -14,13 +14,13 @@ permissions: jobs: mlx-unit-test: - # Label-gated on 'mlx', reusing the repo's run-ci label-gate mechanism + # Label-gated on 'apple-silicon', reusing the repo's run-ci label-gate mechanism # (pr-test-rust.yml). The gate keys on the PR's current label set, so any # event on a labeled PR re-runs the tests and a later unrelated label can't # mask a prior result. The non-pull_request clause covers push / dispatch. if: | github.event_name != 'pull_request' || - contains(github.event.pull_request.labels.*.name, 'mlx') + contains(github.event.pull_request.labels.*.name, 'apple-silicon') runs-on: macos-26 timeout-minutes: 60 env: