File tree Expand file tree Collapse file tree 1 file changed +26
-19
lines changed Expand file tree Collapse file tree 1 file changed +26
-19
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,32 @@ jobs:
13
13
- name : Free up disk space
14
14
run : |
15
15
sudo df -h
16
- sudo rm -rf /usr/share/dotnet \
17
- /usr/local/.ghcup \
18
- /usr/local/swift \
19
- /usr/share/swift \
20
- /usr/lib/jvm \
21
- /usr/local/lib/android \
22
- /usr/lib/google-cloud-sdk \
23
- /usr/local/share/boost \
24
- /usr/local/share/powershell \
25
- /usr/local/share/chromium \
26
- /usr/local/lib/node_modules \
27
- /usr/lib/mono \
28
- /usr/lib/heroku \
29
- /usr/lib/firefox \
30
- /usr/share/miniconda \
31
- /opt/microsoft \
32
- /opt/chrome \
33
- /opt/pipx \
34
- "$AGENT_TOOLSDIRECTORY" || true
16
+ declare -a paths_to_wipe=(
17
+ "/usr/share/dotnet"
18
+ "/usr/local/.ghcup"
19
+ "/usr/local/swift"
20
+ "/usr/share/swift"
21
+ "/usr/lib/jvm"
22
+ "/usr/local/lib/android"
23
+ "/usr/lib/google-cloud-sdk"
24
+ "/usr/local/share/boost"
25
+ "/usr/local/share/powershell"
26
+ "/usr/local/share/chromium"
27
+ "/usr/local/lib/node_modules"
28
+ "/usr/lib/mono"
29
+ "/usr/lib/heroku"
30
+ "/usr/lib/firefox"
31
+ "/usr/share/miniconda"
32
+ "/opt/microsoft"
33
+ "/opt/chrome"
34
+ "/opt/pipx"
35
+ "$AGENT_TOOLSDIRECTORY"
36
+ )
37
+ for p in "${paths_to_wipe[@]}"
38
+ do
39
+ echo "Clearing $p"
40
+ rm -rf $p || true
41
+ done
35
42
sudo df -h
36
43
37
44
- uses : actions/checkout@v5
You can’t perform that action at this time.
0 commit comments