Skip to content

chore: update dependencies (#69) #246

chore: update dependencies (#69)

chore: update dependencies (#69) #246

Workflow file for this run

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