From 5e174cd3dc8d78e688a402a98ecbd063e08e927f Mon Sep 17 00:00:00 2001 From: SukkaW Date: Wed, 22 Jul 2026 06:11:41 +0800 Subject: [PATCH] CI: parallel more steps --- .github/workflows/benchmark-download.yml | 11 +++++++++-- .github/workflows/check-source-domain.yml | 11 +++++++++-- .github/workflows/main.yml | 13 ++++++++++--- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmark-download.yml b/.github/workflows/benchmark-download.yml index 4a74191d..3a430065 100644 --- a/.github/workflows/benchmark-download.yml +++ b/.github/workflows/benchmark-download.yml @@ -56,14 +56,21 @@ jobs: - uses: actions/checkout@v7 with: persist-credentials: false - - uses: pnpm/action-setup@v6 + - name: Set up pnpm + id: setup_pnpm + uses: pnpm/action-setup@v6 + background: true with: run_install: false cache: true - - uses: actions/setup-node@v6 + - name: Set up Node.js + id: setup_node + uses: actions/setup-node@v6 + background: true with: node-version-file: ".node-version" package-manager-cache: false + - wait: [setup_pnpm, setup_node] - run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm install - name: Run download benchmark diff --git a/.github/workflows/check-source-domain.yml b/.github/workflows/check-source-domain.yml index cd8896db..4b1058bd 100644 --- a/.github/workflows/check-source-domain.yml +++ b/.github/workflows/check-source-domain.yml @@ -24,11 +24,17 @@ jobs: - uses: actions/checkout@v6 with: persist-credentials: false - - uses: pnpm/action-setup@v6 + - name: Set up pnpm + id: setup_pnpm + uses: pnpm/action-setup@v6 + background: true with: run_install: false cache: true - - uses: actions/setup-node@v6 + - name: Set up Node.js + id: setup_node + uses: actions/setup-node@v6 + background: true with: node-version-file: ".node-version" 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 }}- ${{ runner.os }}-shard${{ matrix.shard }}-v3- + - wait: [setup_pnpm, setup_node] - run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm install - run: pnpm run node Build/validate-domain-alive.ts diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a92fb93..2ca25eb2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,15 +68,22 @@ jobs: ${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}- ${{ runner.os }}-v3-${{ steps.date.outputs.year }}- ${{ runner.os }}-v3- - # Setup Node.js and pnpm in foreground - - uses: pnpm/action-setup@v6 + # Set up pnpm and Node.js in parallel; both must finish before pnpm runs. + - name: Set up pnpm + id: setup_pnpm + uses: pnpm/action-setup@v6 + background: true with: run_install: false cache: true - - uses: actions/setup-node@v6 + - name: Set up Node.js + id: setup_node + uses: actions/setup-node@v6 + background: true with: node-version-file: ".node-version" package-manager-cache: false + - wait: [setup_pnpm, setup_node] - run: pnpm config set --location=global minimumReleaseAge 0 - run: pnpm install # Foreground pnpm + Node.js setup complete, ensure previous build and cache.db are ready