Skip to content

Commit 4f0b4a4

Browse files
ChrisDentoncuviper
authored andcommitted
Remove Win SDK 10.0.26100.0 from CI
(cherry picked from commit 25617c7)
1 parent 86e362f commit 4f0b4a4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,20 @@ jobs:
173173
- name: ensure the stable version number is correct
174174
run: src/ci/scripts/verify-stable-version-number.sh
175175

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

0 commit comments

Comments
 (0)