ci(windows): free disk space before build (fixes oscdimg out-of-space) #22
Reference in New Issue
Block a user
Delete Branch "ci/free-disk-before-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Build #104 (the WinPE-collector merge) failed at Stage 6 oscdimg:
Insufficient disk space ... need 5319557120 bytes. The collector work added WinPE-NetFx/PowerShell toboot.wim(image grew ~0.4 GB → 5.32 GB), and each successful build persists a ~5 GB ISO toC:\silvermetal\out\. On the single-volume runner (no usable D:/E:) that accumulation starves oscdimg.Fix
Add a "Free disk space" step at the start of the build job that clears the prior ISO output (
C:\silvermetal\out\*) and any stalesmbuildwork dir before building, logging before/after free space. Space now self-heals every run.(I also manually deleted the stale 4.94 GB ISO on the runner so this build has headroom; this step makes it durable.)
Test Plan
yaml.safe_load)🤖 Generated with Claude Code
The boot.wim now carries WinPE-NetFx/PowerShell (collector), growing the image ~0.4GB, and each build persists a ~5GB ISO to C:\silvermetal\out. On the single-volume runner that accumulation starved oscdimg ('Insufficient disk space'). Clear prior output + stale smbuild work dirs at job start so free space self-heals each run. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>