orchard/.github/workflows/bench.yml

30 lines
598 B
YAML

name: Benchmarks
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Run orchard benchmarks
runs-on: ubuntu-latest
env:
CRITERION_TOKEN: ${{ secrets.CRITERION_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Run benchmarks
run: |
# run benchmarks and save baseline in a directory called "new"
cargo bench -- --verbose
- name: Upload benchmarks
run: |
# upload the files
bash <(curl -s https://criterion.dev/bash)