Skip to content

Commit b59b4ce

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

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,31 @@ 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_dotnet: true
47+
remove_haskell: true
48+
remove_tool_cache: true
49+
remove_swap: true
50+
remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
51+
remove_packages_one_command: true
52+
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"
53+
testing: false
54+
55+
- name: Free Disk Space
56+
if: startsWith(matrix.os, 'macos')
57+
run: |
58+
sudo rm -rf /Library/Frameworks/Mono.framework
59+
sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
60+
sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
61+
sudo rm -rf /Users/runner/Library/Android
62+
sudo rm -rf /usr/local/share/powershell
63+
sudo find /Applications -type d -name "Xcode_*.app" ! -name "Xcode_$XCODE_VERSION.app" -prune -exec rm -rf "{}" \;
64+
- run: df -h
65+
4166
- name: Setup emsdk
4267
uses: pyodide/setup-emsdk@v15
4368
with:

0 commit comments

Comments
 (0)