From 19b5c8f724dbdb7421957c290f9213bf072392df Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Tue, 21 Apr 2026 14:20:12 +0200 Subject: [PATCH] ci: fix benchmark upload --- .github/workflows/benchmark.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index f8724689..0f56d3a2 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -1,6 +1,6 @@ name: BW Benchmarks -on: [workflow_call] +on: [ workflow_call ] permissions: contents: read @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - attempt: [1, 2, 3] + attempt: [ 1, 2, 3 ] env: BENCHMARK_JSON: benchmark-results/current-${{ matrix.attempt }}.json @@ -84,7 +84,7 @@ jobs: path: ${{ env.BENCHMARK_JSON }} benchmark: - needs: [benchmark_attempt] + needs: [ benchmark_attempt ] runs-on: ubuntu-latest permissions: contents: read @@ -191,7 +191,7 @@ jobs: run: exit 1 publish: - needs: [benchmark] + needs: [ benchmark ] if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: @@ -208,7 +208,10 @@ jobs: uses: actions/download-artifact@v4 with: name: bw-benchmark-json - path: . + path: benchmark-results + + - name: Verify aggregate benchmark artifact + run: test -s "$BENCHMARK_JSON" - name: Prepare gh-pages for publishing run: |