Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
uses: ./.github/workflows/reusable-ecosystem-ci.yml
with:
runner: ubuntu-latest
# Match the CLI cache producer's Rust toolchains and environment.
build-runner: namespace-profile-linux-x64-default
target: x86_64-unknown-linux-gnu

windows:
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/reusable-ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
workflow_call:
inputs:
runner:
description: Runner for the package build and ecosystem tests.
description: Runner for ecosystem tests and the default package build.
type: string
required: true
build-runner:
description: Optional runner for the package build.
type: string
default: ''
target:
description: Rust target for the package build.
type: string
Expand All @@ -20,8 +24,8 @@ defaults:

jobs:
build:
name: Build vite-plus packages (${{ inputs.runner }})
runs-on: ${{ inputs.runner }}
name: Build vite-plus packages (${{ inputs.build-runner || inputs.runner }})
runs-on: ${{ inputs.build-runner || inputs.runner }}
permissions:
contents: read
packages: read
Expand All @@ -41,8 +45,9 @@ jobs:
- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
if: ${{ !contains(inputs.target, 'windows') }}
with:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: e2e-build-${{ inputs.runner }}
# The CI CLI build caches these release dependencies and saves the cache.
save-cache: false
cache-key: cli-snapshot-test-${{ inputs.target }}

- uses: oxc-project/setup-node@1f1a5b4450c8905bd1830c3a908d22b960c4559a # main (Node before pnpm; unreleased)

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test-vp-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ jobs:

- uses: oxc-project/setup-rust@68c3199c5339f965e6e163924c3c450773eba42b # main (pending v1.0.17 — Swatinem/rust-cache v2.9.1 for node24)
with:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: create-e2e-build
# The CI CLI build caches these release dependencies and saves the cache.
save-cache: false
cache-key: cli-snapshot-test-x86_64-unknown-linux-gnu

- uses: oxc-project/setup-node@1f1a5b4450c8905bd1830c3a908d22b960c4559a # main (Node before pnpm; unreleased)

Expand Down
Loading