forked from TraceMachina/nativelink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
48 lines (47 loc) · 1.46 KB
/
action.yaml
File metadata and controls
48 lines (47 loc) · 1.46 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
---
name: Free up disk space
description: "Free up disk space on workers"
runs:
using: "composite"
steps:
- name: Free disk space
uses: >- # v3.1.0
endersonmenezes/free-disk-space@e6ed9b02e683a3b55ed0252f1ee469ce3b39a885
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
- name: Delete platform specific items to free up disk space
shell: bash
run: |
if [ "$(uname)" = "Darwin" ]; then
echo "Deleting Applications"
sudo rm -rf ~/Applications/*
echo "Deleting all iOS simulators"
xcrun simctl delete all
echo "Deleting iOS Simulator caches"
sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/*
else
echo "Nothing to do here."
fi