Skip to content

Commit 8fc59f6

Browse files
Copilothyf0
andauthored
ci: skip macOS CI jobs on pull requests (#8608)
This extends the CI policy from #8600 to macOS: PRs now run Ubuntu-only for the affected CI lanes, while macOS and Windows remain enabled on `main`. - **Cargo test matrix** - Make the `cargo-test` platform matrix explicit: - `main`: `ubuntu-latest`, `macos-latest`, `windows-latest` - PRs / non-`main`: `ubuntu-latest` only - **macOS native build gating** - Gate `build-rolldown-macos` behind `github.ref_name == 'main'` - **macOS Node job gating** - Gate `node-test-macos` behind `github.ref_name == 'main'` - Gate `node-dev-server-test-macos` behind `github.ref_name == 'main'` - **Workflow shape** - Keep Ubuntu PR coverage unchanged - Mirror the existing Windows-on-`main` behavior instead of introducing a separate policy path ```yml strategy: matrix: target: ${{ github.ref_name == 'main' && fromJSON('["ubuntu-latest","macos-latest","windows-latest"]') || fromJSON('["ubuntu-latest"]') }} ``` <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/rolldown/rolldown/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hyf0 <[email protected]>
1 parent cfddd82 commit 8fc59f6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,7 @@ jobs:
9090
needs: changes
9191
strategy:
9292
matrix:
93-
target:
94-
- ubuntu-latest
95-
- macos-latest
96-
- ${{ github.ref_name == 'main' && 'windows-latest' || '' }}
97-
exclude:
98-
- target: ''
93+
target: ${{ github.ref_name == 'main' && fromJSON('["ubuntu-latest","macos-latest","windows-latest"]') || fromJSON('["ubuntu-latest"]') }}
9994
uses: ./.github/workflows/reusable-cargo-test.yml
10095
with:
10196
os: ${{ matrix.target }}
@@ -116,6 +111,7 @@ jobs:
116111
needs: [changes, build-rolldown-macos]
117112
uses: ./.github/workflows/reusable-node-test.yml
118113
if: |
114+
github.ref_name == 'main' &&
119115
always() &&
120116
(needs.build-rolldown-macos.result == 'success' || needs.build-rolldown-macos.result == 'skipped')
121117
with:
@@ -175,6 +171,7 @@ jobs:
175171
needs: [changes, build-rolldown-macos]
176172
uses: ./.github/workflows/reusable-node-dev-server-test.yml
177173
if: |
174+
github.ref_name == 'main' &&
178175
always() &&
179176
(needs.build-rolldown-macos.result == 'success' || needs.build-rolldown-macos.result == 'skipped')
180177
with:
@@ -201,6 +198,7 @@ jobs:
201198

202199
build-rolldown-macos:
203200
needs: changes
201+
if: github.ref_name == 'main'
204202
uses: ./.github/workflows/reusable-native-build.yml
205203
with:
206204
changed: ${{ needs.changes.outputs.node-changes == 'true' }}

0 commit comments

Comments
 (0)