This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,18 @@ jobs:
104104 with :
105105 fetch-depth : 2
106106
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+
107119 # Rust Log Analyzer can't currently detect the PR number of a GitHub
108120 # Actions build on its own, so a hint in the log message is needed to
109121 # point it in the right direction.
@@ -194,6 +206,11 @@ jobs:
194206 - name : create github artifacts
195207 run : src/ci/scripts/create-doc-artifacts.sh
196208
209+ - name : print disk usage
210+ run : |
211+ echo "disk usage:"
212+ df -h
213+
197214 - name : upload artifacts to github
198215 uses : actions/upload-artifact@v4
199216 with :
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ runners:
55 env : { }
66
77 - &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
813 os : ubuntu-20.04-4core-16gb
914 << : *base-job
1015
@@ -127,7 +132,7 @@ auto:
127132 - image : dist-aarch64-linux
128133 env :
129134 CODEGEN_BACKENDS : llvm,cranelift
130- << : *job-linux-4c
135+ << : *job-linux-4c-largedisk
131136
132137 - image : dist-android
133138 << : *job-linux-4c
@@ -148,28 +153,28 @@ auto:
148153 << : *job-linux-4c
149154
150155 - image : dist-loongarch64-linux
151- << : *job-linux-4c
156+ << : *job-linux-4c-largedisk
152157
153158 - image : dist-loongarch64-musl
154- << : *job-linux-4c
159+ << : *job-linux-4c-largedisk
155160
156161 - image : dist-ohos
157162 << : *job-linux-4c
158163
159164 - image : dist-powerpc-linux
160- << : *job-linux-4c
165+ << : *job-linux-4c-largedisk
161166
162167 - image : dist-powerpc64-linux
163- << : *job-linux-4c
168+ << : *job-linux-4c-largedisk
164169
165170 - image : dist-powerpc64le-linux
166- << : *job-linux-4c
171+ << : *job-linux-4c-largedisk
167172
168173 - image : dist-riscv64-linux
169174 << : *job-linux-4c
170175
171176 - image : dist-s390x-linux
172- << : *job-linux-4c
177+ << : *job-linux-4c-largedisk
173178
174179 - image : dist-various-1
175180 << : *job-linux-4c
You can’t perform that action at this time.
0 commit comments