Skip to content

Commit

Permalink
Add MSRV test with minimal-version dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Apr 3, 2024
1 parent dec0d19 commit 3be10af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ jobs:
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Cargo test
run: cargo test --workspace

rust-msrv:
name: Build-test MSRV (1.74) with minimal crate dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Generate minimal-version dependencies
run: cargo -Zminimal-versions generate-lockfile
- uses: dtolnay/[email protected]
- name: Cargo check
run: cargo check --workspace --all-targets
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Actions Status](https://github.com/Traverse-Research/rust-template/actions/workflows/ci.yml/badge.svg)](https://github.com/Traverse-Research/rust-template/actions)
[![Latest version](https://img.shields.io/crates/v/rust-template.svg?logo=rust)](https://crates.io/crates/rust-template)
[![Documentation](https://docs.rs/rust-template/badge.svg)](https://docs.rs/rust-template)
[![MSRV](https://img.shields.io/badge/rustc-1.74.0+-ab6000.svg)](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html)
[![Lines of code](https://tokei.rs/b1/github/Traverse-Research/rust-template)](https://github.com/Traverse-Research/rust-template)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v1.4%20adopted-ff69b4.svg)](./CODE_OF_CONDUCT.md)
Expand Down

0 comments on commit 3be10af

Please sign in to comment.