diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index eef3c382..a6b50099 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -26,10 +26,12 @@ jobs: pnpm run benchmark - name: Set cache dir - uses: actions/cache/restore@v4 + uses: actions/cache@v4 with: path: ./cache - key: ${{ runner.os }}-benchmark + key: benchmark-${{ runner.os }}-${{ github.run_id }} + restore-keys: | + benchmark-${{ runner.os }} - name: Store benchmark result uses: benchmark-action/github-action-benchmark@v1 @@ -46,12 +48,6 @@ jobs: skip-fetch-gh-pages: ${{ github.event_name == 'push' }} benchmark-data-dir-path: ./cache/benchmarks - - name: Save cache - uses: actions/cache/save@v4 - with: - path: ./cache - key: ${{ runner.os }}-benchmark - docs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' name: Release docs