Skip to content

Commit 60eb469

Browse files
committed
rust-release: remove the unpacked packages before rust-cache cleans target/
1 parent 8464f99 commit 60eb469

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/rust-release.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ jobs:
7878
args=()
7979
if [[ "$RELEASE_TAG" == *-* ]]; then args+=(--prerelease); fi
8080
gh release create "$RELEASE_TAG" target/package/*.crate --verify-tag --generate-notes "${args[@]}"
81+
# rust-cache's post step walks target/ and trips over the unpacked
82+
# package, whose vendored core has its own tests/ tree.
83+
- name: Remove unpacked packages before caching
84+
if: always()
85+
run: test ! -d target/package || find target/package -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} +

0 commit comments

Comments
 (0)