From da3060baeda8ca3c05d3a3be1b9380b79b1d7106 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Wed, 18 Dec 2024 19:38:24 +0800 Subject: [PATCH] u --- .github/workflows/ci.yml | 1 + .github/workflows/reusable-build.yml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7ef0fe1f30..18be9b05059 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,7 @@ jobs: native: ${{ needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS == '"ubuntu-latest"' }} runner: ${{ needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS }} skipable: ${{ needs.check-changed.outputs.changed != 'true' }} + bench: true test-release-linux: name: Test Release Linux diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 37a77bd6342..4bc0e6e6841 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -54,6 +54,10 @@ on: type: boolean required: false default: true + bench: # Run benchmarks? + type: boolean + required: false + default: true ref: # Git reference to checkout required: false type: string @@ -389,7 +393,9 @@ jobs: sha: ${{ github.sha }} bench: + name: Bench needs: build + if: inputs.bench runs-on: ${{ fromJSON(needs.build.outputs.runner-labels) }} steps: - name: Checkout @@ -423,7 +429,7 @@ jobs: if: ${{ !inputs.skipable }} uses: ./.github/actions/pnpm-cache with: - node-version: ${{ matrix.node }} + node-version: 20 - name: Install Rust Toolchain if: ${{ !inputs.skipable }}