From b4a32b940a1e995fe0ff8166cf1921c7373f3b8d Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Wed, 12 Mar 2025 13:13:43 +0000 Subject: [PATCH] Switch from broken generic cache action to a Rust-specific one --- .github/workflows/linux.yml | 9 +-------- .github/workflows/mac.yml | 9 +-------- .github/workflows/windows.yml | 9 +-------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7e2f008..41c31b4 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -16,14 +16,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} - - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }} + - uses: swatinem/rust-cache@v2 - uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.toolchain }} diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 7d24e4e..12742cd 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -16,14 +16,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} - - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }} + - uses: swatinem/rust-cache@v2 - uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.toolchain }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 05de375..a85ed74 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -16,14 +16,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} - - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }} + - uses: swatinem/rust-cache@v2 - uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.toolchain }}