From 8b0b5d08396c2b963218b626036b16d62cb7f15a Mon Sep 17 00:00:00 2001 From: J / Jacob Babich Date: Fri, 11 Oct 2024 03:27:13 -0400 Subject: [PATCH] ci(check-and-build-and-test): shuffle steps of the `msrv` job to try to fix it, and call `cargo-msrv` instead of `cargo msrv` --- .github/workflows/check-and-build-and-test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-and-build-and-test.yml b/.github/workflows/check-and-build-and-test.yml index 048af40..70637c1 100644 --- a/.github/workflows/check-and-build-and-test.yml +++ b/.github/workflows/check-and-build-and-test.yml @@ -216,7 +216,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Delete existing Rust stuff + - uses: Swatinem/rust-cache@v2 + with: + shared-key: ${{ matrix.supporteds.target }}-latest-variable + cache-on-failure: "true" + + - name: Delete existing cargo stuff run: rm -rf ~/.cargo/bin - name: Install cargo-msrv @@ -224,11 +229,6 @@ jobs: with: tool: cargo-msrv - - uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{ matrix.supporteds.target }}-latest-variable - cache-on-failure: "true" - - name: Verify declared MSRV (minimum supported Rust version) - run: cargo msrv verify --output-format json + run: cargo-msrv verify --output-format json working-directory: ${{ matrix.crate_directory }}