Skip to content

Conversation

@felipemadero
Copy link
Collaborator

Add cleanup of osxcross build/ and tarballs/ directories after toolchain compilation completes. This frees ~7-8 GB of disk space before goreleaser runs, preventing "no space left on device" errors during release builds.

The cleanup removes:

  • build/: LLVM/Clang intermediate compilation artifacts (~6-7 GB)
  • tarballs/: MacOSX SDK tarball already extracted to target/SDK (~1 GB)

The osxcross/target/ directory with binaries, libraries, and SDK remains intact for darwin cross-compilation.

Add cleanup of osxcross build/ and tarballs/ directories after
toolchain compilation completes. This frees ~7-8 GB of disk space
before goreleaser runs, preventing "no space left on device" errors
during release builds.

The cleanup removes:
- build/: LLVM/Clang intermediate compilation artifacts (~6-7 GB)
- tarballs/: MacOSX SDK tarball already extracted to target/SDK (~1 GB)

The osxcross/target/ directory with binaries, libraries, and SDK
remains intact for darwin cross-compilation.
@felipemadero felipemadero merged commit 38d4c97 into main Nov 20, 2025
67 of 68 checks passed
@felipemadero felipemadero deleted the free-disk-on-release-new branch November 20, 2025 00:46
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.

3 participants