From fea254d3f937c0849757c66a72fc8d2710a8a254 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Mon, 31 Jul 2023 22:33:06 +0100 Subject: [PATCH] Setup CI for cargo msrv. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1acbbf1..c10cd49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,3 +58,26 @@ jobs: cargo install cargo-tarpaulin ./tools/codecov.sh --xml bash <(curl -s https://codecov.io/bash) + + msrv: + runs-on: ubuntu-latest + + steps: + - name: Install rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + default: true + + - name: Install cargo plugins + run: | + cargo install cargo-msrv + + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - name: Check the minimum supported rust version + run: cargo msrv verify diff --git a/Cargo.toml b/Cargo.toml index 2628814..3d9ec43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ version = "1.0.1-pre" authors = ["Diogo Sousa "] edition = "2021" -rust-version = "1.56.0" +rust-version = "1.60.0" homepage = "https://github.com/orium/archery" repository = "https://github.com/orium/archery"