Skip to content

Commit

Permalink
ci: add workflow to verify minimum Rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth committed Nov 13, 2024
1 parent 5abc1eb commit 6e1829f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/msrv.yml
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

0 comments on commit 6e1829f

Please sign in to comment.