CI: parallel more steps

This commit is contained in:
SukkaW
2026-07-22 06:11:41 +08:00
parent 5652361fce
commit 5e174cd3dc
3 changed files with 28 additions and 7 deletions

View File

@@ -56,14 +56,21 @@ jobs:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
with: with:
persist-credentials: false persist-credentials: false
- uses: pnpm/action-setup@v6 - name: Set up pnpm
id: setup_pnpm
uses: pnpm/action-setup@v6
background: true
with: with:
run_install: false run_install: false
cache: true cache: true
- uses: actions/setup-node@v6 - name: Set up Node.js
id: setup_node
uses: actions/setup-node@v6
background: true
with: with:
node-version-file: ".node-version" node-version-file: ".node-version"
package-manager-cache: false package-manager-cache: false
- wait: [setup_pnpm, setup_node]
- run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm config set --location=global minimumReleaseAge 0
- run: pnpm install - run: pnpm install
- name: Run download benchmark - name: Run download benchmark

View File

@@ -24,11 +24,17 @@ jobs:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
persist-credentials: false persist-credentials: false
- uses: pnpm/action-setup@v6 - name: Set up pnpm
id: setup_pnpm
uses: pnpm/action-setup@v6
background: true
with: with:
run_install: false run_install: false
cache: true cache: true
- uses: actions/setup-node@v6 - name: Set up Node.js
id: setup_node
uses: actions/setup-node@v6
background: true
with: with:
node-version-file: ".node-version" node-version-file: ".node-version"
package-manager-cache: false package-manager-cache: false
@@ -59,6 +65,7 @@ jobs:
${{ runner.os }}-shard${{ matrix.shard }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}- ${{ runner.os }}-shard${{ matrix.shard }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
${{ runner.os }}-shard${{ matrix.shard }}-v3-${{ steps.date.outputs.year }}- ${{ runner.os }}-shard${{ matrix.shard }}-v3-${{ steps.date.outputs.year }}-
${{ runner.os }}-shard${{ matrix.shard }}-v3- ${{ runner.os }}-shard${{ matrix.shard }}-v3-
- wait: [setup_pnpm, setup_node]
- run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm config set --location=global minimumReleaseAge 0
- run: pnpm install - run: pnpm install
- run: pnpm run node Build/validate-domain-alive.ts - run: pnpm run node Build/validate-domain-alive.ts

View File

@@ -68,15 +68,22 @@ jobs:
${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}- ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
${{ runner.os }}-v3-${{ steps.date.outputs.year }}- ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-
${{ runner.os }}-v3- ${{ runner.os }}-v3-
# Setup Node.js and pnpm in foreground # Set up pnpm and Node.js in parallel; both must finish before pnpm runs.
- uses: pnpm/action-setup@v6 - name: Set up pnpm
id: setup_pnpm
uses: pnpm/action-setup@v6
background: true
with: with:
run_install: false run_install: false
cache: true cache: true
- uses: actions/setup-node@v6 - name: Set up Node.js
id: setup_node
uses: actions/setup-node@v6
background: true
with: with:
node-version-file: ".node-version" node-version-file: ".node-version"
package-manager-cache: false package-manager-cache: false
- wait: [setup_pnpm, setup_node]
- run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm config set --location=global minimumReleaseAge 0
- run: pnpm install - run: pnpm install
# Foreground pnpm + Node.js setup complete, ensure previous build and cache.db are ready # Foreground pnpm + Node.js setup complete, ensure previous build and cache.db are ready