-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathaction.yaml
More file actions
53 lines (49 loc) · 1.64 KB
/
action.yaml
File metadata and controls
53 lines (49 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Free up disk space
description: "Free up disk space on workers"
runs:
using: "composite"
steps:
- if: runner.os == 'Linux' # Only works on Linux
name: Free disk space
uses: >- # v3.2.2
endersonmenezes/free-disk-space@7901478139cff6e9d44df5972fd8ab8fcade4db1
with:
rm_cmd: "rmz" # For speed up
remove_android: false # Takes too long.
remove_dotnet: true
remove_haskell: true
remove_tool_cache: false # TODO(palfrey): Do we really need this?
# Note: Not deleting google-cloud-cli because it takes too long.
remove_packages: >
azure-cli
microsoft-edge-stable
google-chrome-stable
firefox
postgresql*
temurin-*
*llvm*
mysql*
dotnet-sdk-*
remove_packages_one_command: true
remove_folders: >
/usr/share/swift
/usr/share/miniconda
/usr/share/az*
/usr/share/glade*
/usr/local/share/chromium
/usr/local/share/powershell
# using hints from https://github.com/actions/runner-images/issues/10511#issuecomment-3984466720
- if: runner.os == 'macOS'
name: Free Disk space
shell: bash
run: |
df -h /
# Remove unnecessary pre-installed tools (saves 5-10GB)
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /Library/Frameworks/Mono.framework
# Remove unused Xcode simulators (can save 2-5GB each)
xcrun simctl delete unavailable
xcrun simctl runtime list | grep -v "iOS 17" | head
df -h /