Skip to content

add MSRV check to CI #1926

add MSRV check to CI

add MSRV check to CI #1926

Workflow file for this run

#
# Configuration for GitHub-based CI
#
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Report cargo version
run: cargo --version
- name: Report rustfmt version
run: cargo fmt -- --version
- name: Check style
run: cargo fmt -- --check
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable]
include:
- os: ubuntu-latest
rust: nightly
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --all-features --locked --verbose
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack --no-dev-deps --rust-version check --package typify