Skip to content

Commit

Permalink
Only run bench on master. Update criterion version
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Nov 7, 2023
1 parent 686b6f3 commit 3ffc53a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Benchmark

on:
push:
branches:
- master
tags-ignore:
- "v*"

jobs:
bench:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: cargo bench --bench main -- --output-format bencher | tee crates/flowistry/benches/output.txt
- uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'cargo'
output-file-path: crates/flowistry/benches/output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
2 changes: 1 addition & 1 deletion crates/flowistry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ html-escape = {version = "0.2", optional = true}
[dev-dependencies]
# Hack based on https://github.com/rust-lang/cargo/issues/2911
flowistry = { path = ".", features = ["test"] }
criterion = "0.4"
criterion = "0.5.1"
env_logger = {version = "0.9", default-features = false}
test-log = "0.2"
glob = "0.3.0"
Expand Down

0 comments on commit 3ffc53a

Please sign in to comment.