Update dashmap requirement from 5.1 to 6.0 #117
Workflow file for this run
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: Benchmark | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
default-benchmark: | |
name: default-benchmark-${{ matrix.os }}-${{ matrix.rust_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# Only run nightly on ubuntu-latest | |
rust_version: [stable, nightly] | |
include: | |
- os: windows-latest | |
rust_version: stable | |
- os: macOS-latest | |
rust_version: stable | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust_version }} | |
override: true | |
- name: Bench | |
run: cargo bench --all -- --test | |
all-features-benchmark: | |
name: feature-benchmark-${{ matrix.os }}-${{ matrix.rust_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# Only run nightly on ubuntu-latest | |
rust_version: [stable, nightly] | |
include: | |
- os: windows-latest | |
rust_version: stable | |
- os: macOS-latest | |
rust_version: stable | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust_version }} | |
override: true | |
- name: Bench with --all-features | |
run: cargo bench --all --all-features -- --test | |
sanitizer: | |
name: address-sanitizer-benchmark-ubuntu-latest-nightly | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
RUSTFLAGS: "-D warnings -Z sanitizer=address" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
components: rust-src | |
- name: Run address sanitizer on benchmarks | |
run: cargo bench yatp -Zbuild-std --target x86_64-unknown-linux-gnu --all --all-features -- --test |