3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-07-16 19:35:43 +00:00

ci: retain workspace artifacts in target-triple test

This commit is contained in:
eitsupi 2026-07-04 08:21:57 +00:00
parent 92bdd21660
commit 0aa9ab6c7b

View file

@ -33,6 +33,7 @@ jobs:
shared-key: target-triple-${{ matrix.os }}-${{ github.run_id }}-${{ github.run_attempt }}
add-job-id-key: "false"
add-rust-environment-hash-key: "false"
cache-workspace-crates: "true"
- run: cargo check --target "$RUST_TARGET"
working-directory: tests
@ -68,6 +69,7 @@ jobs:
shared-key: target-triple-${{ matrix.os }}-${{ github.run_id }}-${{ github.run_attempt }}
add-job-id-key: "false"
add-rust-environment-hash-key: "false"
cache-workspace-crates: "true"
save-if: "false"
- name: Verify target-triple artifacts
@ -79,7 +81,7 @@ jobs:
echo "The target-triple cache was not restored exactly." >&2
exit 1
fi
if ! compgen -G "tests/target/$RUST_TARGET/debug/deps/librust_cache-*" > /dev/null; then
if ! compgen -G "tests/target/$RUST_TARGET/debug/deps/rust_cache-*" > /dev/null; then
echo "The target-triple artifacts were not restored." >&2
exit 1
fi