AVRO-3870: Do not use target, version and hash for the cache key
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
diff --git a/.github/workflows/test-lang-rust-ci.yml b/.github/workflows/test-lang-rust-ci.yml
index ae6ca34..d3b71aa 100644
--- a/.github/workflows/test-lang-rust-ci.yml
+++ b/.github/workflows/test-lang-rust-ci.yml
@@ -66,7 +66,7 @@
# these represent dependencies downloaded by cargo
# and thus do not depend on the OS, arch nor rust version.
path: ~/.cargo
- key: ${{ runner.os }}-cargo-cache1-${{ matrix.target }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
+ key: ${{ runner.os }}-cargo-cache2-
- name: Cache Rust dependencies
id: cache-target
@@ -75,12 +75,7 @@
# these represent compiled steps of both dependencies and avro
# and thus are specific for a particular OS, arch and rust version.
path: lang/rust/target
- key: ${{ runner.os }}-target-cache1-${{ matrix.target }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
-
- - name: Cache hit ?!
- run: |
- echo "~/.cargo cache hit: ${{ steps.cache-cargo.outputs.cache-hit }}"
- echo "lang/rust/target cache hit: ${{ steps.cache-target.outputs.cache-hit }}"
+ key: ${{ runner.os }}-target-cache2-
- name: Rust Toolchain
uses: dtolnay/rust-toolchain@nightly
@@ -229,7 +224,7 @@
# these represent dependencies downloaded by cargo
# and thus do not depend on the OS, arch nor rust version.
path: ~/.cargo
- key: ${{ runner.os }}-cargo-cache1-web-assembly-${{ hashFiles('**/Cargo.lock') }}
+ key: ${{ runner.os }}-cargo-cache2-
- name: Cache Rust dependencies
uses: actions/cache@v3
@@ -237,7 +232,7 @@
# these represent compiled steps of both dependencies and avro
# and thus are specific for a particular OS, arch and rust version.
path: lang/rust/target
- key: ${{ runner.os }}-target-cache1-stable-web-assembly-${{ hashFiles('**/Cargo.lock') }}
+ key: ${{ runner.os }}-target-cache2-
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh