Skip to content

Commit

Permalink
Merge pull request #2585 from ProvableHQ/fix/benchmarks
Browse files Browse the repository at this point in the history
[Fix] Update permissions on Continuous Benchmarks CI
  • Loading branch information
vicsn authored Feb 18, 2025
2 parents 45e0561 + 1ccaa6b commit 9acf6f1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ name: Run snarkVM Benchmarks
on:
push:
branches:
- 'mainnet'
- 'staging'

jobs:
# Run benchmarks and stores the output to a file
benchmark:
name: Benchmark
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -21,7 +23,7 @@ jobs:
toolchain: stable
override: true

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down Expand Up @@ -94,13 +96,13 @@ jobs:
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark

- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
uses: benchmark-action/github-action-benchmark@v1
with:
name: snarkVM Benchmarks
tool: 'cargo'
Expand Down

0 comments on commit 9acf6f1

Please sign in to comment.