From 02876bc86a3ceb75381c1c2f7a4c3256d05b4c8b Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 25 Aug 2024 07:44:01 +0100 Subject: [PATCH] experiment: don't duplicate the MSRV --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 914ccb584e..05dc8e2364 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,9 +51,13 @@ jobs: features: ["", --features serde, --features tokio-1] steps: - uses: actions/checkout@master + - name: Get MSRV from Cargo.toml + run: | + MSRV=$(grep 'rust-version' Cargo.toml | sed 's/.*= *"\(.*\)".*/\1/') + echo "MSRV=$MSRV" >> $GITHUB_ENV - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.70.0 + toolchain: ${{ env.MSRV }} - uses: taiki-e/install-action@cargo-no-dev-deps - run: cargo no-dev-deps check --all --all-targets ${{ matrix.features }}