Skip to content

Commit 9acf6f1

Browse files
authored
Merge pull request #2585 from ProvableHQ/fix/benchmarks
[Fix] Update permissions on Continuous Benchmarks CI
2 parents 45e0561 + 1ccaa6b commit 9acf6f1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/benchmarks.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ name: Run snarkVM Benchmarks
33
on:
44
push:
55
branches:
6-
- 'mainnet'
6+
- 'staging'
77

88
jobs:
99
# Run benchmarks and stores the output to a file
1010
benchmark:
1111
name: Benchmark
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- name: Checkout
15-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1618

1719
- name: Install Rust
1820
uses: actions-rs/toolchain@v1
@@ -21,7 +23,7 @@ jobs:
2123
toolchain: stable
2224
override: true
2325

24-
- uses: actions/cache@v2
26+
- uses: actions/cache@v4
2527
with:
2628
path: |
2729
~/.cargo/registry
@@ -94,13 +96,13 @@ jobs:
9496
9597
# Download previous benchmark result from cache (if exists)
9698
- name: Download previous benchmark data
97-
uses: actions/cache@v1
99+
uses: actions/cache@v4
98100
with:
99101
path: ./cache
100102
key: ${{ runner.os }}-benchmark
101103

102104
- name: Store benchmark result
103-
uses: rhysd/github-action-benchmark@v1
105+
uses: benchmark-action/github-action-benchmark@v1
104106
with:
105107
name: snarkVM Benchmarks
106108
tool: 'cargo'

0 commit comments

Comments
 (0)