Skip to content

Commit 38d4c97

Browse files
authored
Clean up osxcross build artifacts to free disk space (#3000)
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.
1 parent de1c86b commit 38d4c97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
wget https://github.com/joseluisq/macosx-sdks/releases/download/12.3/$MACOS_SDK_FNAME -O tarballs/$MACOS_SDK_FNAME
4444
echo $MACOS_SDK_CHECKSUM tarballs/$MACOS_SDK_FNAME | sha256sum -c -
4545
UNATTENDED=1 ./build.sh
46+
rm -rf build/
47+
rm -rf tarballs/
4648
echo $PWD/target/bin >> $GITHUB_PATH
4749
env:
4850
MACOS_SDK_FNAME: MacOSX12.3.sdk.tar.xz

0 commit comments

Comments
 (0)