Merge pull request #449 from evenfurther/dynamic-version-check #124
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: | |
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 |