-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 930 Bytes
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on: [push, pull_request]
name: Build benchmarks
jobs:
build_benches:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
- nightly
- 1.77.0 # MSRV for tests
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