try benchers github commenting feature #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
env: | |
BENCHER_PROJECT: html5gum | |
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }} | |
BENCHER_ADAPTER: rust_iai | |
BENCHER_TESTBED: github-actions | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- run: cargo install --git https://github.com/bencherdev/bencher/ | |
- run: sudo apt-get install -y valgrind | |
- run: bencher run --if-branch "$GITHUB_REF_NAME" --else-if-branch "$GITHUB_BASE_REF" --else-if-branch main --err --github-actions ${{ secrets.GITHUB_TOKEN }} --ci-only-on-alert "cargo bench" |