|
78 | 78 | # Check the `calculate_matrix` job to see how is the matrix defined. |
79 | 79 | include: ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }} |
80 | 80 | 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 | | -
|
101 | 81 | - name: disable git crlf conversion |
102 | 82 | run: git config --global core.autocrlf false |
103 | 83 |
|
@@ -194,6 +174,26 @@ jobs: |
194 | 174 | - name: ensure the stable version number is correct |
195 | 175 | run: src/ci/scripts/verify-stable-version-number.sh |
196 | 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 | + # Add the msys2 bin dir to PATH to stop it from prepending itself to PATH |
| 185 | + echo "c:/msys64/usr/bin" >> $env:GITHUB_PATH |
| 186 | +
|
| 187 | + # Get the Visual Studio shell, setting the SDK version to 10.0.22621.0 |
| 188 | + $vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath |
| 189 | + &$vs\Common7\Tools\Launch-VsDevShell.ps1 -HostArch Amd64 -Arch x86 |
| 190 | + Enter-VsDevshell -VsInstallPath $vs -HostArch Amd64 -Arch x86 -DevCmdArguments "-winsdk=10.0.22621.0" |
| 191 | +
|
| 192 | + # Update the github environment and path. |
| 193 | + $new_env = ls env: | foreach { echo "$($_.key)=$($_.value)" } |
| 194 | + $new_env >> $env:GITHUB_ENV |
| 195 | + foreach ($path in $env:PATH -split ';') { $path >> $env:GITHUB_PATH } |
| 196 | +
|
197 | 197 | # Show the environment just before we run the build |
198 | 198 | # This makes it easier to diagnose problems with the above install scripts. |
199 | 199 | - name: show the current environment |
|
0 commit comments