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 }}