🙈 add full copy of half to dev dep with rand_distr feature #243
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: CodSpeed Benchmarks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# `workflow_dispatch` allows CodSpeed to trigger backtest | |
# performance analysis in order to generate initial data. | |
workflow_dispatch: | |
jobs: | |
Benchmarks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache cargo registry | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-stable-${{ hashFiles('Cargo.toml') }} | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
- name: Setup Rust | |
run: | | |
rustup update nightly --no-self-update | |
rustup default nightly | |
- name: Install cargo-codspeed (with cache) | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-codspeed | |
- name: Build the benchmark target(s) | |
run: cargo codspeed build --features half | |
- uses: CodSpeedHQ/action@v3 | |
name: Run benchmarks | |
with: | |
run: cargo codspeed run |