2424    name : Build Universal Wheel (macOS ARM64) 
2525    runs-on : macos-14-xlarge 
2626    steps :
27+       - name : Free up disk space (Initial) 
28+         run : | 
29+           # Clean Homebrew cache 
30+           brew cleanup -s 2>/dev/null || true  
31+           rm -rf "$(brew --cache)" 2>/dev/null || true  
32+           sudo rm -rf ~/Library/Developer/Xcode/DerivedData 2>/dev/null || true  
33+           sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode 2>/dev/null || true  
34+           sudo rm -rf /Users/runner/Library/Android 2>/dev/null || true  
35+           sudo rm -rf /tmp/* 2>/dev/null || true  
36+           echo "=== Disk usage after cleanup ===" 
37+           df -h 
2738name : Setup pyenv 
2839        run : | 
2940          curl https://pyenv.run | bash 
8091          brew install openssl@3 || echo "OpenSSL install failed, continuing..." 
8192          brew install --ignore-dependencies llvm@19 
8293          brew install git ninja libtool gettext binutils grep findutils nasm lld@19 libiconv 
94+           brew install ccache || echo "ccache installation failed, continuing without it" 
8395          brew install go 
8496          cd /usr/local/opt/ && sudo rm -f llvm && sudo ln -sf llvm@19 llvm 
8597          export PATH=$(brew --prefix llvm@19)/bin:$(brew --prefix lld@19)/bin:$PATH 
@@ -102,6 +114,17 @@ jobs:
102114      - name : Update submodules 
103115        run : | 
104116          git submodule update --init --recursive --jobs 4 
117+ name : Free up disk space (Before compilation) 
118+         run : | 
119+           echo "=== Disk usage before compilation cleanup ===" 
120+           df -h 
121+           brew cleanup -s 2>/dev/null || true  
122+           rm -rf "$(brew --cache)" 2>/dev/null || true  
123+           rm -rf ~/.cache/pip 2>/dev/null || true  
124+           rm -rf ~/.pyenv/.cache 2>/dev/null || true  
125+           rm -rf ~/.cargo/registry/cache 2>/dev/null || true  
126+           echo "=== Disk usage after cleanup ===" 
127+           df -h 
105128name : Run chdb/build.sh 
106129        timeout-minutes : 600 
107130        run : | 
0 commit comments