Skip to content

Commit

Permalink
Downgrade Win SDK to 10.0.22621.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Feb 27, 2025
1 parent 96cfc75 commit e0dff29
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ jobs:
- name: ensure the stable version number is correct
run: src/ci/scripts/verify-stable-version-number.sh

# Temporary fix to unblock CI
# We revert to an older Windows SDK for 32-bit Windows MSVC builds.
# See issue https://github.com/rust-lang/rust/issues/137733 for more details.
- name: Downgrade Windows SDK
shell: powershell
if: ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
run: |
$env:PATH = "C:\msys64\usr\bin;" + $env:Path
$vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath
cmd /c "`"$vs\VC\Auxiliary\Build\vcvarsall.bat`" x86 10.0.22621.0 > NUL & SET" > envs.txt
echo "Printing current environment variables"
cat envs.txt
cat envs.txt >> $env:GITHUB_ENV
# Show the environment just before we run the build
# This makes it easier to diagnose problems with the above install scripts.
- name: show the current environment
Expand Down

0 comments on commit e0dff29

Please sign in to comment.