From d071c51c7e64498ea7211f2577b6e20b98e1a0a2 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Wed, 26 Jul 2023 20:28:20 +0100 Subject: [PATCH] Add CI check for msrv --- .github/workflows/rust.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f5da063..4369ce4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -37,3 +37,19 @@ jobs: - uses: actions/checkout@v3 - name: doc run: cargo doc --all-features + msrv: + runs-on: ubuntu-latest + # we use a matrix here just because env can't be used in job names + # https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability + strategy: + matrix: + msrv: [1.56.1] + name: ubuntu / ${{ matrix.msrv }} + steps: + - uses: actions/checkout@v3 + - name: Install ${{ matrix.msrv }} + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.msrv }} + - name: cargo +${{ matrix.msrv }} check + run: cargo check --all-features