From 279ec0a1aa8b211b4080a61b7678235e9f5ed7a8 Mon Sep 17 00:00:00 2001 From: yihau Date: Sat, 13 Jul 2024 03:06:14 +0800 Subject: [PATCH] fix 3 --- .github/workflows/bench.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 5fe5d4b44baf89..6fb65be3ecd4da 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,7 +8,7 @@ permissions: jobs: benchmark: - name: rust benchmark + name: benchmark runs-on: benchmark strategy: fail-fast: false @@ -45,17 +45,20 @@ jobs: } steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - - name: Run Command + - name: Before Command + if: ${{ matrix.test.before_command != '' }} + run: | + ${{ matrix.test.before_command }} + + - name: Command run: | source ci/rust-version.sh nightly - if [ -n "${{ matrix.test.before_command }}" ]; then - ${{ matrix.test.before_command }} || true - fi ${{ matrix.test.command }} | tee output.txt - - name: Store benchmark result + - name: Result uses: benchmark-action/github-action-benchmark@v1 with: name: ${{ matrix.test.name }}