From bcef374a1886086610910927cd482670502093a7 Mon Sep 17 00:00:00 2001 From: Luis Garcia Date: Tue, 22 Oct 2024 23:05:53 +0000 Subject: [PATCH] CI: Fix rust cache keys --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 288ef455..eb56f9bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,8 @@ jobs: version: ${{ env.LLVM_VERSION }} - uses: Swatinem/rust-cache@v2 + with: + key: "${{ matrix.os }} - name: Run cargo test env: @@ -122,6 +124,10 @@ jobs: path: crates/tanoshi-web/dist - uses: actions-rust-lang/setup-rust-toolchain@v1 + - uses: Swatinem/rust-cache@v2 + with: + key: "${{ matrix.os }}-${{ matrix.arch }}" + - name: Install deps (ubuntu) if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }} @@ -154,8 +160,6 @@ jobs: vcpkg install --only-downloads libarchive:x64-windows-static-md vcpkg install libarchive:x64-windows-static-md - - uses: Swatinem/rust-cache@v2 - - name: Install Binstall uses: cargo-bins/cargo-binstall@main