Skip to content

Commit 5d3c57e

Browse files
Boshenclaude
andcommitted
ci: only run Windows/Mac CI on main or with ci: full label
- Remove `detect-changes` job (paths-filter was unreliable) - Jobs now gate on `optimize-ci` directly - Skip Windows and macOS matrix entries on PRs unless `ci: full` label is present - Linux CI continues to run on all PRs unconditionally Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent baff301 commit 5d3c57e

1 file changed

Lines changed: 14 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,9 @@ jobs:
3434
with:
3535
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
3636

37-
detect-changes:
38-
runs-on: ubuntu-latest
37+
download-previous-rolldown-binaries:
3938
needs: optimize-ci
4039
if: needs.optimize-ci.outputs.skip == 'false'
41-
permissions:
42-
contents: read
43-
pull-requests: read
44-
outputs:
45-
code-changed: ${{ steps.filter.outputs.code }}
46-
steps:
47-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
48-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
49-
id: filter
50-
with:
51-
filters: |
52-
code:
53-
- '!**/*.md'
54-
55-
download-previous-rolldown-binaries:
56-
needs: detect-changes
57-
if: needs.detect-changes.outputs.code-changed == 'true'
5840
runs-on: ubuntu-latest
5941
permissions:
6042
contents: read
@@ -65,8 +47,13 @@ jobs:
6547
with:
6648
github-token: ${{ secrets.GITHUB_TOKEN }}
6749
test:
68-
needs: detect-changes
69-
if: needs.detect-changes.outputs.code-changed == 'true'
50+
needs: optimize-ci
51+
if: |
52+
needs.optimize-ci.outputs.skip == 'false' && (
53+
matrix.os == 'ubuntu-latest' ||
54+
github.event_name != 'pull_request' ||
55+
contains(github.event.pull_request.labels.*.name, 'ci: full')
56+
)
7057
name: Test
7158
strategy:
7259
fail-fast: false
@@ -111,8 +98,8 @@ jobs:
11198
- run: cargo test $(for d in crates/*/; do echo -n "-p $(basename $d) "; done) -p vite-plus-cli
11299

113100
lint:
114-
needs: detect-changes
115-
if: needs.detect-changes.outputs.code-changed == 'true'
101+
needs: optimize-ci
102+
if: needs.optimize-ci.outputs.skip == 'false'
116103
name: Lint
117104
runs-on: ubuntu-latest
118105
steps:
@@ -188,6 +175,10 @@ jobs:
188175
189176
cli-e2e-test:
190177
name: CLI E2E test
178+
if: |
179+
matrix.os == 'ubuntu-latest' ||
180+
github.event_name != 'pull_request' ||
181+
contains(github.event.pull_request.labels.*.name, 'ci: full')
191182
needs:
192183
- download-previous-rolldown-binaries
193184
strategy:

0 commit comments

Comments
 (0)