mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
CI: parallel more steps
This commit is contained in:
11
.github/workflows/benchmark-download.yml
vendored
11
.github/workflows/benchmark-download.yml
vendored
@@ -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
|
||||||
|
|||||||
11
.github/workflows/check-source-domain.yml
vendored
11
.github/workflows/check-source-domain.yml
vendored
@@ -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
|
||||||
|
|||||||
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user