File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ runs:
13
13
using : composite
14
14
steps :
15
15
- name : Remove unnecessary software to free up disk space
16
+ if : contains(fromJSON('["ubuntu-20.04","ubuntu-22.04"]'), inputs.os)
16
17
shell : bash
17
18
run : |
18
19
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
19
20
df -h
20
- sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
21
+ sudo rm -r /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
21
22
df -h
22
23
23
24
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -191,7 +191,15 @@ jobs:
191
191
runs-on : ubuntu-20.04
192
192
container :
193
193
image : ubuntu:18.04
194
+ volumes :
195
+ - /usr/local:/mnt/host-local
194
196
steps :
197
+ - name : Remove unnecessary software to free up disk space
198
+ run : |
199
+ # inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
200
+ df -h
201
+ rm -r /mnt/host-local/lib/android /mnt/host-local/.ghcup
202
+ df -h
195
203
# This is required before checkout because the container does not
196
204
# have Git installed, so cannot run checkout action. The checkout
197
205
# action requires Git >=2.18, so use the Git maintainers' PPA.
Original file line number Diff line number Diff line change 84
84
runs-on : ubuntu-20.04
85
85
container :
86
86
image : ubuntu:18.04
87
+ volumes :
88
+ - /usr/local:/mnt/host-local
87
89
permissions :
88
90
contents : write
89
91
steps :
92
+ - name : Remove unnecessary software to free up disk space
93
+ run : |
94
+ # inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
95
+ df -h
96
+ rm -r /mnt/host-local/lib/android /mnt/host-local/.ghcup
97
+ df -h
90
98
# This is required before checkout because the container does not
91
99
# have Git installed, so cannot run checkout action. The checkout
92
100
# action requires Git >=2.18, so use the Git maintainers' PPA.
You can’t perform that action at this time.
0 commit comments