Skip to content

Commit d9be8c5

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/llvm.yml

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

28+
- run: df -h
29+
30+
- name: Free Disk Space
31+
if: startsWith(matrix.os, 'ubuntu')
32+
uses: endersonmenezes/free-disk-space@v2
33+
with:
34+
remove_android: true
35+
remove_dotnet: true
36+
remove_haskell: true
37+
remove_tool_cache: true
38+
remove_swap: true
39+
remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
40+
remove_packages_one_command: true
41+
remove_folders: "/usr/share/swift /usr/share/miniconda /usr/share/az* /usr/local/lib/node_modules /usr/local/share/chromium /usr/local/share/powershell /usr/local/julia /usr/local/aws-cli /usr/local/aws-sam-cli /usr/share/gradle"
42+
testing: false
43+
44+
- name: Free Disk Space
45+
if: startsWith(matrix.os, 'macos')
46+
run: |
47+
sudo rm -rf /Library/Frameworks/Mono.framework
48+
sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
49+
sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
50+
sudo rm -rf /Users/runner/Library/Android
51+
sudo rm -rf /usr/local/share/powershell
52+
sudo find /Applications -type d -name "Xcode_*.app" ! -name "Xcode_$XCODE_VERSION.app" -prune -exec rm -rf "{}" \;
53+
- run: df -h
54+
2855
- name: Install cross compilers
2956
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.platform, 'arm64')
3057
run: sudo apt install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu

0 commit comments

Comments
 (0)