Skip to content

Commit 1277eb7

Browse files
committed
Free disk space in Ubuntu and macOS CI jobs.
1 parent d9be8c5 commit 1277eb7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,30 @@ jobs:
3838
with:
3939
fetch-depth: 0
4040

41+
- name: Free Disk Space
42+
if: startsWith(matrix.os, 'ubuntu')
43+
uses: endersonmenezes/free-disk-space@v2
44+
with:
45+
remove_android: true
46+
remove_haskell: true
47+
remove_tool_cache: true
48+
remove_swap: true
49+
remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
50+
remove_packages_one_command: true
51+
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"
52+
testing: false
53+
54+
- name: Free Disk Space
55+
if: startsWith(matrix.os, 'macos')
56+
run: |
57+
sudo rm -rf /Library/Frameworks/Mono.framework
58+
sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
59+
sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
60+
sudo rm -rf /Users/runner/Library/Android
61+
sudo rm -rf /usr/local/share/powershell
62+
sudo find /Applications -type d -name "Xcode_*.app" ! -name "Xcode_$XCODE_VERSION.app" -prune -exec rm -rf "{}" \;
63+
- run: df -h
64+
4165
- name: Setup emsdk
4266
uses: pyodide/setup-emsdk@v15
4367
with:

0 commit comments

Comments
 (0)