mirror of https://github.com/zcash/orchard.git
CI: Switch to storing benchmarks in gh-pages branch
This commit is contained in:
parent
84aa43fe8b
commit
eca0dd7177
|
@ -1,29 +1,35 @@
|
||||||
name: Benchmarks
|
name: Benchmarks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
env:
|
permissions:
|
||||||
CARGO_TERM_COLOR: always
|
contents: write
|
||||||
|
deployments: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
benchmark:
|
||||||
name: Run orchard benchmarks
|
name: Performance regression check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
CRITERION_TOKEN: ${{ secrets.CRITERION_TOKEN }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run benchmarks
|
- uses: actions-rs/toolchain@v1
|
||||||
run: |
|
with:
|
||||||
# run benchmarks and save baseline in a directory called "new"
|
toolchain: 1.51.0
|
||||||
cargo bench -- --verbose
|
override: true
|
||||||
- name: Upload benchmarks
|
- name: Run benchmark
|
||||||
run: |
|
run: cargo bench -- --output-format bencher | tee output.txt
|
||||||
# upload the files
|
- name: Store benchmark result
|
||||||
bash <(curl -s https://criterion.dev/bash)
|
uses: benchmark-action/github-action-benchmark@v1
|
||||||
|
with:
|
||||||
|
name: Orchard Benchmarks
|
||||||
|
tool: 'cargo'
|
||||||
|
output-file-path: output.txt
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
auto-push: true
|
||||||
|
# Show alert with commit comment on detecting possible performance regression
|
||||||
|
alert-threshold: '200%'
|
||||||
|
comment-on-alert: true
|
||||||
|
fail-on-alert: true
|
||||||
|
alert-comment-cc-users: '@str4d'
|
||||||
|
|
Loading…
Reference in New Issue