orchard/.github/workflows/bench.yml

30 lines
598 B
YAML
Raw Normal View History

2020-10-20 15:18:25 -07:00
name: Benchmarks
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
2021-01-08 08:32:36 -08:00
name: Run orchard benchmarks
2020-10-20 15:18:25 -07:00
runs-on: ubuntu-latest
env:
CRITERION_TOKEN: ${{ secrets.CRITERION_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Run benchmarks
run: |
2021-01-21 04:12:43 -08:00
# run benchmarks and save baseline in a directory called "new"
cargo bench -- --verbose
2020-10-20 15:18:25 -07:00
- name: Upload benchmarks
run: |
2021-01-21 04:12:43 -08:00
# upload the files
bash <(curl -s https://criterion.dev/bash)