Skip to content

Commit 2f58193

Browse files
committed
Auto merge of rust-lang#137753 - ChrisDenton:remove-sdk, r=Kobzol
Remove latest Windows SDK from 32-bit CI This is an alternative to rust-lang#137766, in case that doesn't work. It is in some ways simpler but is less principled and may be more flaky (as it involves deleting stuff). try-job: i686-msvc-1 try-job: i686-msvc-2 try-job: dist-i686-msvc
2 parents cb08599 + 25617c7 commit 2f58193

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,20 @@ jobs:
179179
- name: show the current environment
180180
run: src/ci/scripts/dump-environment.sh
181181

182+
# Temporary fix to unblock CI
183+
# Remove the latest Windows SDK for 32-bit Windows MSVC builds.
184+
# See issue https://github.com/rust-lang/rust/issues/137733 for more details.
185+
- name: Remove Windows SDK 10.0.26100.0
186+
shell: powershell
187+
if: ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
188+
run: |
189+
$kits = (Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots').KitsRoot10
190+
$sdk_version = "10.0.26100.0"
191+
192+
foreach ($kind in 'Bin', 'Lib', 'Include') {
193+
Remove-Item -Force -Recurse $kits\$kind\$sdk_version -ErrorAction Continue
194+
}
195+
182196
- name: run the build
183197
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
184198
run: src/ci/scripts/run-build-from-ci.sh 2>&1

src/ci/github-actions/jobs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -474,13 +474,13 @@ auto:
474474
env:
475475
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc --enable-sanitizers
476476
SCRIPT: make ci-msvc-py
477-
<<: *job-windows-8c
477+
<<: *job-windows
478478

479479
- name: i686-msvc-2
480480
env:
481481
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc --enable-sanitizers
482482
SCRIPT: make ci-msvc-ps1
483-
<<: *job-windows-8c
483+
<<: *job-windows
484484

485485
# x86_64-msvc-ext is split into multiple jobs to run tests in parallel.
486486
- name: x86_64-msvc-ext1
@@ -595,7 +595,7 @@ auto:
595595
SCRIPT: python x.py dist bootstrap --include-default-paths
596596
DIST_REQUIRE_ALL_TOOLS: 1
597597
CODEGEN_BACKENDS: llvm,cranelift
598-
<<: *job-windows-8c
598+
<<: *job-windows
599599

600600
- name: dist-aarch64-msvc
601601
env:

0 commit comments

Comments
 (0)