From dde8942c2216851fc8883bf82f1b075b3281679c Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 7 Jun 2025 13:09:22 +0100 Subject: [PATCH] Revert "Remove cargo caching in CI" This reverts commit 072c62e55d1baf75de89f89422633b1b094c7de7. --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 11 +++++++++++ 2 files changed, 33 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24659a87..3ebe86ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,17 @@ jobs: with: fetch-depth: 0 + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Get descriptive libloot version id: get-libloot-version shell: bash @@ -139,6 +150,17 @@ jobs: with: fetch-depth: 0 + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Rust i686-pc-windows-msvc target run: rustup target add i686-pc-windows-msvc if: matrix.platform == 'Win32' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17d5b491..abb0d252 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,17 @@ jobs: with: fetch-depth: 0 + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Rust i686-pc-windows-msvc target run: rustup target add i686-pc-windows-msvc if: matrix.platform == 'Win32'