-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add workflow to verify minimum Rust version
- Loading branch information
1 parent
5abc1eb
commit 6e1829f
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
name: MSRV check | ||
|
||
jobs: | ||
msrv_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install stable toolchain | ||
run: rustup toolchain install stable | ||
|
||
- name: Install Cargo MSRV | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-msrv | ||
version: latest | ||
use-tool-cache: true | ||
|
||
- name: Verify minimum Rust version for the library and CLI | ||
run: | | ||
cargo msrv verify --path ./lib | ||
cargo msrv verify --path ./cli | ||