File tree 2 files changed +29
-7
lines changed
2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,18 @@ jobs:
104
104
with :
105
105
fetch-depth : 2
106
106
107
+ # Free up disk space on Linux by removing preinstalled components that
108
+ # we do not need. We do this to enable some of the less resource
109
+ # intensive jobs to run on free runners, which however also have
110
+ # less disk space.
111
+ - name : free up disk space
112
+ uses : jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
113
+ if : contains(matrix.os, 'ubuntu')
114
+ with :
115
+ # Removing packages with APT saves ~5 GiB, but takes several
116
+ # minutes (and potentially removes important packages).
117
+ large-packages : false
118
+
107
119
# Rust Log Analyzer can't currently detect the PR number of a GitHub
108
120
# Actions build on its own, so a hint in the log message is needed to
109
121
# point it in the right direction.
@@ -194,6 +206,11 @@ jobs:
194
206
- name : create github artifacts
195
207
run : src/ci/scripts/create-doc-artifacts.sh
196
208
209
+ - name : print disk usage
210
+ run : |
211
+ echo "disk usage:"
212
+ df -h
213
+
197
214
- name : upload artifacts to github
198
215
uses : actions/upload-artifact@v4
199
216
with :
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ runners:
5
5
env : { }
6
6
7
7
- &job-linux-4c
8
+ os : ubuntu-20.04
9
+ << : *base-job
10
+
11
+ # Large runner used mainly for its bigger disk capacity
12
+ - &job-linux-4c-largedisk
8
13
os : ubuntu-20.04-4core-16gb
9
14
<< : *base-job
10
15
@@ -127,7 +132,7 @@ auto:
127
132
- image : dist-aarch64-linux
128
133
env :
129
134
CODEGEN_BACKENDS : llvm,cranelift
130
- << : *job-linux-4c
135
+ << : *job-linux-4c-largedisk
131
136
132
137
- image : dist-android
133
138
<< : *job-linux-4c
@@ -148,28 +153,28 @@ auto:
148
153
<< : *job-linux-4c
149
154
150
155
- image : dist-loongarch64-linux
151
- << : *job-linux-4c
156
+ << : *job-linux-4c-largedisk
152
157
153
158
- image : dist-loongarch64-musl
154
- << : *job-linux-4c
159
+ << : *job-linux-4c-largedisk
155
160
156
161
- image : dist-ohos
157
162
<< : *job-linux-4c
158
163
159
164
- image : dist-powerpc-linux
160
- << : *job-linux-4c
165
+ << : *job-linux-4c-largedisk
161
166
162
167
- image : dist-powerpc64-linux
163
- << : *job-linux-4c
168
+ << : *job-linux-4c-largedisk
164
169
165
170
- image : dist-powerpc64le-linux
166
- << : *job-linux-4c
171
+ << : *job-linux-4c-largedisk
167
172
168
173
- image : dist-riscv64-linux
169
174
<< : *job-linux-4c
170
175
171
176
- image : dist-s390x-linux
172
- << : *job-linux-4c
177
+ << : *job-linux-4c-largedisk
173
178
174
179
- image : dist-various-1
175
180
<< : *job-linux-4c
You can’t perform that action at this time.
0 commit comments