Update to the newest working msrv #21
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
on: [push, pull_request] | |
name: build | |
jobs: | |
lint: | |
name: Format and Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.81 # We want to use a modern version of rust for better lints | |
components: rustfmt, clippy | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy --all -- -D warnings | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
profile: minimal | |
# We want to check MSRV support. Our test deps might have a higher MSRV requirement, so we have a separate | |
# step just to build on this older toolchain | |
toolchain: 1.60 | |
- name: Build | |
run: cargo build | |
- name: Build no-std | |
run: cargo build --no-default-feature | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.81 | |
- name: Run cargo test | |
run: cargo test | |
- name: Run cargo test for no-std | |
run: cargo test --no-default-feature |