From ea8c287855ae799573a56697db63e7b16edf3a37 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 29 Jul 2024 12:59:37 +0200 Subject: [PATCH] Update cache key used in rust CI script (#11641) * Remove misplaced comment The comment is in `linux-build-lib` and refers to `linux-build-lib` as to some other thing. * Hash all Cargo.toml files for cargo cache key on CI * Hash all Cargo.lock files for cargo cache key on CI --- .github/workflows/rust.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4a41fd542e5d..45abeb8f6fe2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -62,8 +62,7 @@ jobs: ~/.cargo/git/db/ ./target/ ./datafusion-cli/target/ - # this key equals the ones on `linux-build-lib` for re-use - key: cargo-cache-benchmark-${{ hashFiles('datafusion/**/Cargo.toml', 'benchmarks/Cargo.toml', 'datafusion-cli/Cargo.toml') }} + key: cargo-cache-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }} - name: Check datafusion without default features # Some of the test binaries require the parquet feature still