forked from starkware-libs/stwo
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (35 loc) · 1.02 KB
/
benchmarks-pages.yaml
File metadata and controls
38 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name:
on:
push:
branches:
- dev
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
jobs:
run-avx-bench:
runs-on: stwo-avx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap_runners
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2025-01-02
- name: Run benchmark
run: |
cargo install cargo-criterion
./scripts/bench.sh |& tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-${{github.event.pull_request.base.ref}}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "cargo"
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true