Skip to content

Commit

Permalink
ci: change how cache is saved/restored
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Nov 6, 2024
1 parent 05dc9b8 commit b1ac2b4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b1ac2b4

Please sign in to comment.