name: Benchmarks
on: [push]
jobs:
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: hecrj/setup-rust-action@v1
- name: Build benchmarks
run: |
cargo bench --no-run --all-features --package benchmarks
- name: Run benchmarks
run: |
cargo bench --all-features --package benchmarks
- name: Deploy Docs
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
branch: gh-pages
folder: target/criterion/
git-config-name: kl-botsu
git-config-email: botsu@khonsulabs.com
target-folder: /benchmarks/
clean: true