From d59ab2ba9faa9536861f99ea4b879fdc03385e5c Mon Sep 17 00:00:00 2001 From: Marko Kosmerl Date: Mon, 16 Dec 2024 15:42:01 +0000 Subject: [PATCH 1/2] chore(CI): intel macos label --- .github/workflows-source/ci-main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows-source/ci-main.yml b/.github/workflows-source/ci-main.yml index 21f3c5eaa7e..66616281bf0 100644 --- a/.github/workflows-source/ci-main.yml +++ b/.github/workflows-source/ci-main.yml @@ -179,7 +179,12 @@ jobs: runs-on: labels: macOS # Run on protected branches, but only on public repo - if: ${{ github.ref_protected && github.repository == 'dfinity/ic' }} + # Allow running if CI_MACOS_INTEL label is used + if: > + ${{ + (github.ref_protected && github.repository == 'dfinity/ic') || + (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'CI_MACOS_INTEL')) + }} steps: - <<: *checkout - name: Set PATH From ced6aa55126f008567e66ed51d7335e2c305d3a7 Mon Sep 17 00:00:00 2001 From: IDX GitHub Automation Date: Mon, 16 Dec 2024 15:43:33 +0000 Subject: [PATCH 2/2] IDX GitHub Automation --- .github/workflows/ci-main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 0c334b8448d..4a5b4e63713 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -170,7 +170,15 @@ jobs: runs-on: labels: macOS # Run on protected branches, but only on public repo - if: ${{ github.ref_protected && github.repository == 'dfinity/ic' }} + # Allow running if CI_MACOS_INTEL label is used + if: > + ${{ + + + (github.ref_protected && github.repository == 'dfinity/ic') || + (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'CI_MACOS_INTEL')) + }} + steps: - name: Checkout uses: actions/checkout@v4