Skip to content

Fix rust-cache post-step path validation error#305

Merged
DorianZheng merged 1 commit intomainfrom
fix/rust-cache-target-dir
Feb 25, 2026
Merged

Fix rust-cache post-step path validation error#305
DorianZheng merged 1 commit intomainfrom
fix/rust-cache-target-dir

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • The build workflows (build-wheels, build-runtime, build-node) delete target/ to save disk space after building the guest binary
  • Swatinem/rust-cache@v2's post-step validates paths even with save-if: false, erroring when target/ is missing
  • Fix: recreate an empty target/ directory after cleanup with mkdir -p target

Test plan

  • Trigger Build Wheels workflow via workflow_dispatch and verify rust-cache post-step no longer errors
  • Verify Build Runtime and Build Node workflows similarly pass

The build workflows delete target/ to save disk space, but
rust-cache's post-step validates the path even with save-if: false.
Recreate an empty target/ directory after cleanup to satisfy validation.

Affected workflows: build-wheels, build-runtime, build-node.
@DorianZheng DorianZheng merged commit 12ce5e7 into main Feb 25, 2026
18 checks passed
@DorianZheng DorianZheng deleted the fix/rust-cache-target-dir branch February 25, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant