From ec93abaaf48408f198a6c63ea7ddd5533334c433 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 7 Jun 2025 13:17:39 +0100 Subject: [PATCH] Update CI Cargo caching config The target directory doesn't exist, so there's no point listing it. The two files added are used by "cargo install" to track what's been installed. --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/release.yml | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ebe86ad..5f0e3eb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,9 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + ~/.cargo/.crates.toml + ~/.cargo/.crates2.json + key: ${{ runner.os }}-cargo-cbindgen-${{ env.CBINDGEN_VERSION }} - name: Get descriptive libloot version id: get-libloot-version @@ -158,8 +159,9 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + ~/.cargo/.crates.toml + ~/.cargo/.crates2.json + key: ${{ runner.os }}-cargo-cbindgen-${{ env.CBINDGEN_VERSION }} - name: Install Rust i686-pc-windows-msvc target run: rustup target add i686-pc-windows-msvc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abb0d252..8f8dbc78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,8 +57,9 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + ~/.cargo/.crates.toml + ~/.cargo/.crates2.json + key: ${{ runner.os }}-cargo-cbindgen-${{ env.CBINDGEN_VERSION }} - name: Install Rust i686-pc-windows-msvc target run: rustup target add i686-pc-windows-msvc