Skip to content

Commit cd9b203

Browse files
committed
Update ci.yml
1 parent 5e58769 commit cd9b203

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/ci.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,21 @@ jobs:
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+
$vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath
89+
&$vs\Common7\Tools\Launch-VsDevShell.ps1 -HostArch Amd64 -Arch x86
90+
Enter-VsDevshell -VsInstallPath $vs -HostArch Amd64 -Arch x86 -DevCmdArguments "-winsdk=10.0.26100.0"
91+
$new_env = ls env: | foreach { echo "$($_.key)=$($_.value)" }
92+
$new_env >> $env:GITHUB_ENV
93+
$env:PATH += ";c:/msys64/usr/bin"
94+
$env:PATH >> $env:GITHUB_PATH
95+
8196
- name: disable git crlf conversion
8297
run: git config --global core.autocrlf false
8398

@@ -174,21 +189,6 @@ jobs:
174189
- name: ensure the stable version number is correct
175190
run: src/ci/scripts/verify-stable-version-number.sh
176191

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-
$vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath
185-
&$vs\Common7\Tools\Launch-VsDevShell.ps1 -HostArch Amd64 -Arch x86
186-
Enter-VsDevshell -VsInstallPath $vs -HostArch Amd64 -Arch x86 -DevCmdArguments "-winsdk 10.0.26100.0"
187-
$new_env = ls env: | foreach { echo "$($_.key)=$($_.value)" }
188-
$new_env >> $env:GITHUB_ENV
189-
$env:PATH += ";c:/msys64/usr/bin"
190-
$env:PATH >> $env:GITHUB_PATH
191-
192192
# Show the environment just before we run the build
193193
# This makes it easier to diagnose problems with the above install scripts.
194194
- name: show the current environment

0 commit comments

Comments
 (0)