Skip to content

Commit 69e8049

Browse files
committed
cleanup disk spaces for mac arm64
1 parent ced24c1 commit 69e8049

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build_macos_arm64_wheels.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
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
2738
- name: Setup pyenv
2839
run: |
2940
curl https://pyenv.run | bash
@@ -80,6 +91,7 @@ jobs:
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
105128
- name: Run chdb/build.sh
106129
timeout-minutes: 600
107130
run: |

0 commit comments

Comments
 (0)