From 19fd218303afb93678b960448d97422d7b392e21 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 3 Dec 2024 09:41:40 -0500 Subject: [PATCH] CI: Try using only MSRV in tests & lints --- .github/workflows/ci.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7152ca7..8162fe2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,11 @@ name: CI on: pull_request: push: - branches: - - master + #branches: + # - master + +env: + MSRV: "1.70" jobs: check-msrv: @@ -11,7 +14,7 @@ jobs: strategy: matrix: toolchain: - - "1.70" + - "${{ env.MSRV }}" - stable runs-on: ubuntu-latest steps: @@ -46,8 +49,10 @@ jobs: - name: Remove the rust-toolchain.toml run: rm rust-toolchain.toml - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + - name: Install MSRV toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: "${{ env.MSRV }}" - uses: Swatinem/rust-cache@v2 @@ -67,9 +72,10 @@ jobs: - name: Remove the rust-toolchain.toml run: rm rust-toolchain.toml - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + - name: Install MSRV toolchain + uses: dtolnay/rust-toolchain@master with: + toolchain: "${{ env.MSRV }}" components: rustfmt, clippy - uses: Swatinem/rust-cache@v2