Skip to content

Commit d665267

Browse files
committed
Free disk space in LLVM CI.
1 parent 4ba0b32 commit d665267

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/llvm.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: lukka/get-cmake@latest
2727

28+
- run: df -h
29+
- name: Free Disk Space
30+
if: startsWith(matrix.os, 'ubuntu')
31+
run: |
32+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
33+
sudo docker image prune --all --force
34+
sudo docker builder prune -a
35+
36+
- name: Free Disk Space
37+
if: startsWith(matrix.os, 'macos')
38+
run: |
39+
sudo rm -rf /Library/Frameworks/Mono.framework
40+
sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
41+
sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
42+
sudo rm -rf /Users/runner/Library/Android
43+
sudo rm -rf /usr/local/share/powershell
44+
sudo find /Applications -type d -name "Xcode_*.app" ! -name "Xcode_$XCODE_VERSION.app" -prune -exec rm -rf "{}" \;
45+
- run: df -h
46+
2847
- name: Install cross compilers
2948
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.platform, 'arm64')
3049
run: sudo apt install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu

0 commit comments

Comments
 (0)