diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 4651c7d4d2..2c1465fed1 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -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: diff --git a/.github/workflows/reusable-ecosystem-ci.yml b/.github/workflows/reusable-ecosystem-ci.yml index 16d3096a34..097aa76cc6 100644 --- a/.github/workflows/reusable-ecosystem-ci.yml +++ b/.github/workflows/reusable-ecosystem-ci.yml @@ -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 @@ -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 @@ -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) diff --git a/.github/workflows/test-vp-create.yml b/.github/workflows/test-vp-create.yml index 2c1a5be5f3..1e4dc124cf 100644 --- a/.github/workflows/test-vp-create.yml +++ b/.github/workflows/test-vp-create.yml @@ -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)