From f829daf094a8b9fa7d85202e9f804e97a99c9b26 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sun, 11 Jan 2026 19:36:33 +0900 Subject: [PATCH] ci: Improve test-msrv job cache (#3627) --- .github/workflows/CI.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 28af7c8f..5c9b78ba 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -125,14 +125,8 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v6 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ env.MSRV }} - name: "install Rust nightly" uses: dtolnay/rust-toolchain@nightly - - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref == 'refs/heads/main' }} - name: Select minimal version run: cargo +nightly update -Z minimal-versions - name: Fix up Cargo.lock - crc32fast @@ -141,6 +135,12 @@ jobs: run : cargo +nightly update -p version_check@0.1.0 --precise 0.1.4 - name: Fix up Cargo.lock - lazy_static run: cargo +nightly update -p lazy_static --precise 1.1.0 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ env.MSRV }} + - uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Run tests run: > cargo +${{ env.MSRV }}