Skip to content

chore: set MSRV to 1.74 and enforce it in CI #366

chore: set MSRV to 1.74 and enforce it in CI

chore: set MSRV to 1.74 and enforce it in CI #366

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
components: rustfmt, clippy
- uses: pre-commit/action@v2.0.0
with:
extra_args: --all-files
msrv-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
bins: cargo-msrv
- run: |
cargo msrv --path crates/codspeed verify -- cargo check --all-features --config codspeed=true
cargo msrv --path crates/bencher_compat verify -- cargo check --all-features --config codspeed=true
cargo msrv --path crates/criterion_compat verify -- cargo check --all-features --config codspeed=true
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
- run: cargo test --all
compat-integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
cache-target: release
- run: cargo install --path crates/cargo-codspeed --locked
- run: cargo codspeed build -p codspeed
- run: cargo codspeed build -p codspeed-bencher-compat
- run: cargo codspeed build --features async_futures -p codspeed-criterion-compat
- name: Run the benchmarks
uses: CodSpeedHQ/action@main
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}