From 6e1829f18d30b497c1b1c794e50dc923c0bd4e3e Mon Sep 17 00:00:00 2001 From: rolv Date: Wed, 13 Nov 2024 15:36:20 +0000 Subject: [PATCH] ci: add workflow to verify minimum Rust version --- .github/workflows/msrv.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/msrv.yml diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml new file mode 100644 index 0000000..fb3bc4c --- /dev/null +++ b/.github/workflows/msrv.yml @@ -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/install@v0.1 + 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 +