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 +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 7878 # Check the `calculate_matrix` job to see how is the matrix defined.
7979 include : ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
8080 steps :
81+ # Temporary fix to unblock CI
82+ # We revert to an older Windows SDK for 32-bit Windows MSVC builds.
83+ # See issue https://github.com/rust-lang/rust/issues/137733 for more details.
84+ - name : Downgrade Windows SDK
85+ shell : pwsh
86+ if : ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
87+ run : |
88+ # Add the msys2 bin dir to PATH to stop it from prepending itself to PATH
89+ echo "c:/msys64/usr/bin" >> $env:GITHUB_PATH
90+
91+ # Get the Visual Studio shell, setting the SDK version to 10.0.22621.0
92+ $vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath
93+ &$vs\Common7\Tools\Launch-VsDevShell.ps1 -HostArch Amd64 -Arch x86
94+ Enter-VsDevshell -VsInstallPath $vs -HostArch Amd64 -Arch x86 -DevCmdArguments "-winsdk=10.0.22621.0"
95+
96+ # Update the github environment and path.
97+ $new_env = ls env: | foreach { echo "$($_.key)=$($_.value)" }
98+ $new_env >> $env:GITHUB_ENV
99+ foreach ($path in $env:PATH -split ';') { echo $path >> $env:GITHUB_PATH }
100+
81101 - name : disable git crlf conversion
82102 run : git config --global core.autocrlf false
83103
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments