Merge pull request #229 from artichoke/dev/lopopolo-nightly-lints #569
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: 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/[email protected] | |
- name: Install Rust toolchain | |
uses: artichoke/setup-rust/[email protected] | |
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 |