Skip to content

Replace obsolete actions-rs #125

Replace obsolete actions-rs

Replace obsolete actions-rs #125

Workflow file for this run

name: CodSpeed Benchmarks
on:
push:
branches:
- main
pull_request:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-stable-${{ hashFiles('Cargo.toml') }}
- uses: actions-rs/toolchain@v1
name: Install Rust toolchain
with:
profile: minimal
toolchain: stable
override: true
- uses: baptiste0928/cargo-install@v2
name: Install cargo-codspeed (with cache)
with:
crate: cargo-codspeed
- uses: actions-rs/cargo@v1
name: Build benchmarks
with:
command: codspeed
args: build
- uses: CodSpeedHQ/action@v1
name: Run benchmarks
with:
run: cargo codspeed run