Skip to content

Merge pull request #223 from artichoke/dependabot/github_actions/gha-… #548

Merge pull request #223 from artichoke/dependabot/github_actions/gha-…

Merge pull request #223 from artichoke/dependabot/github_actions/gha-… #548

Workflow file for this run

---
name: Bench
"on":
push:
branches:
- trunk
pull_request:
branches:
- trunk
schedule:
- cron: "0 0 * * WED"
jobs:
bench:
name: Bench
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.0
- name: Install Rust toolchain
uses: artichoke/setup-rust/build-and-test@v1.12.1
with:
toolchain: nightly
- name: Compile
run: cargo build --verbose
working-directory: benchmarks
- name: Compile tests
run: cargo bench --no-run
working-directory: benchmarks
- name: Test
if: github.ref == 'refs/heads/trunk'
run: cargo bench
working-directory: benchmarks