Skip to content

Commit

Permalink
Add GitHub action to build benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
gendx committed Sep 20, 2024
1 parent 1998648 commit ac54f2f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on: [push, pull_request]
name: Build benchmarks
jobs:
build_benches:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
- nightly
- 1.75.0 # MSRV
fail-fast: false
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- name: Build (no default features)
run: cargo bench --no-run --verbose --all --no-default-features
- name: Build (log feature)
run: cargo bench --no-run --verbose --all --no-default-features --features=log
- name: Build (all features)
run: cargo bench --no-run --verbose --all --all-features
- name: Build (default features)
run: cargo bench --no-run --verbose --all

0 comments on commit ac54f2f

Please sign in to comment.