Skip to content

Commit 5381071

Browse files
Auto merge of #144137 - ChrisDenton:diskspace, r=<try>
dnm: dskusg try-job: *-msvc* try-job: *-mingw*
2 parents 8231065 + 53cd135 commit 5381071

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,26 @@ jobs:
223223
run: |
224224
cd src/ci/citool
225225
CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build
226-
226+
227+
- name: Free Diskspace
228+
shell: pwsh
229+
if: ${{ runner.os }} == "Windows"
230+
run: |
231+
Get-Volume | Out-String | Write-Host
232+
$dirs = 'C:\Program Files\LLVM\bin',
233+
'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm',
234+
'C:\rtools45', 'C:\ghcup', 'C:\Program Files (x86)\Android',
235+
'C:\Program Files\Google\Chrome', 'C:\Program Files (x86)\Microsoft\Edge',
236+
'C:\Program Files\Mozilla Firefox', 'C:\Program Files\MySQL', 'C:\Julia',
237+
'C:\Program Files\MongoDB', 'C:\Program Files\Azure Cosmos DB Emulator',
238+
'C:\Program Files\PostgreSQL', 'C:\Program Files\Unity Hub', 'C:\ProgramData\chocolatey',
239+
'C:\Strawberry', 'C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk'
240+
# The following are system directories that are typically large but should only be deleted
241+
# if we're desperate for space.
242+
# 'C:\Windows\Installer', 'C:\ProgramData\Package Cache',
243+
Remove-Item -Recurse -Force -ErrorAction Continue $dirs
244+
Get-Volume | Out-String | Write-Host
245+
227246
- name: run the build
228247
run: |
229248
set +e

src/ci/github-actions/jobs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runners:
3131
<<: *base-job
3232

3333
- &job-windows
34-
os: windows-2022
34+
os: windows-2025
3535
<<: *base-job
3636

3737
# NOTE: windows-2025 has less disk space available than windows-2022,
@@ -41,7 +41,7 @@ runners:
4141
<<: *base-job
4242

4343
- &job-windows-8c
44-
os: windows-2022-8core-32gb
44+
os: windows-2025-8core-32gb
4545
<<: *base-job
4646

4747
- &job-windows-25-8c
@@ -172,9 +172,9 @@ try:
172172
optional:
173173
# This job is used just to test optional jobs.
174174
# It will be replaced by tier 2 and tier 3 jobs in the future.
175-
- name: optional-mingw-check-1
175+
- name: optional-pr-check-1
176176
env:
177-
IMAGE: mingw-check-1
177+
IMAGE: pr-check-1
178178
<<: *job-linux-4c
179179

180180
# Main CI jobs that have to be green to merge a commit into master

0 commit comments

Comments
 (0)