Bump MSRV to 1.81.0 #42
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: Validate | |
on: | |
push: | |
branches: ["**"] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
rustfmt: | |
name: Check rustfmt formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run rustfmt | |
run: | | |
rustup component add rustfmt | |
cargo fmt --check | |
clippy: | |
name: Check Clippy lints | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Clippy | |
run: | | |
rustup component add clippy | |
cargo clippy -- -D warnings | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
env: | |
RUST_MSRV: 1.81.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
rustup toolchain install ${RUST_MSRV}-x86_64-unknown-linux-gnu | |
rustup override set ${RUST_MSRV}-x86_64-unknown-linux-gnu | |
cargo build | |
cargo test --verbose |