File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,21 @@ jobs:
174
174
- name : ensure the stable version number is correct
175
175
run : src/ci/scripts/verify-stable-version-number.sh
176
176
177
+ # Temporary fix to unblock CI
178
+ # We revert to an older Windows SDK for 32-bit Windows MSVC builds.
179
+ # See issue https://github.com/rust-lang/rust/issues/137733 for more details.
180
+ - name : downgrade Windows SDK
181
+ shell : pwsh
182
+ if : ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
183
+ run : |
184
+ $sdk_dir = (Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots').KitsRoot10
185
+ $sdk_version = "10.0.22621.0"
186
+
187
+ # Override the SDK used by cc-rs by setting the SDK environment variables
188
+ "WindowsSdkDir=$sdk_dir" >> $env:GITHUB_ENV
189
+ "WindowsSDKVersion=$sdk_version\" >> $env:GITHUB_ENV
190
+
191
+
177
192
# Show the environment just before we run the build
178
193
# This makes it easier to diagnose problems with the above install scripts.
179
194
- name : show the current environment
Original file line number Diff line number Diff line change @@ -474,13 +474,13 @@ auto:
474
474
env :
475
475
RUST_CONFIGURE_ARGS : --build=i686-pc-windows-msvc --enable-sanitizers
476
476
SCRIPT : make ci-msvc-py
477
- << : *job-windows-8c
477
+ << : *job-windows
478
478
479
479
- name : i686-msvc-2
480
480
env :
481
481
RUST_CONFIGURE_ARGS : --build=i686-pc-windows-msvc --enable-sanitizers
482
482
SCRIPT : make ci-msvc-ps1
483
- << : *job-windows-8c
483
+ << : *job-windows
484
484
485
485
# x86_64-msvc-ext is split into multiple jobs to run tests in parallel.
486
486
- name : x86_64-msvc-ext1
@@ -595,7 +595,7 @@ auto:
595
595
SCRIPT : python x.py dist bootstrap --include-default-paths
596
596
DIST_REQUIRE_ALL_TOOLS : 1
597
597
CODEGEN_BACKENDS : llvm,cranelift
598
- << : *job-windows-8c
598
+ << : *job-windows
599
599
600
600
- name : dist-aarch64-msvc
601
601
env :
You can’t perform that action at this time.
0 commit comments