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:
parent
92bdd21660
commit
0aa9ab6c7b
1 changed files with 3 additions and 1 deletions
4
.github/workflows/target-triple.yml
vendored
4
.github/workflows/target-triple.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue