about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2025-02-27 21:50:30 +0000
committerJosh Stone <jistone@redhat.com>2025-03-14 17:47:52 -0700
commit3c37eba27c8df47eb452280e5ac8608e937a93bc (patch)
tree9e96014b85576f4c40aa5e1008ae4f80e39344b5
parenteb5c32de041ef7721312559bfd8fdd639be092aa (diff)
downloadrust-3c37eba27c8df47eb452280e5ac8608e937a93bc.tar.gz
rust-3c37eba27c8df47eb452280e5ac8608e937a93bc.zip
Remove Win SDK 10.0.26100.0 from CI
(cherry picked from commit 25617c7e695d716d0ecb3cf2366d371441505e47)
-rw-r--r--.github/workflows/ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5c78ac2816c..1aaf194d4d1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -189,6 +189,20 @@ jobs:
       - name: ensure the stable version number is correct
         run: src/ci/scripts/verify-stable-version-number.sh
 
+      # Temporary fix to unblock CI
+      # Remove the latest Windows SDK for 32-bit Windows MSVC builds.
+      # See issue https://github.com/rust-lang/rust/issues/137733 for more details.
+      - name: Remove Windows SDK 10.0.26100.0
+        shell: powershell
+        if: ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
+        run: |
+          $kits = (Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots').KitsRoot10
+          $sdk_version = "10.0.26100.0"
+
+          foreach ($kind in 'Bin', 'Lib', 'Include') {
+            Remove-Item -Force -Recurse $kits\$kind\$sdk_version -ErrorAction Continue
+          }
+
       - name: run the build
         # Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
         run: src/ci/scripts/run-build-from-ci.sh 2>&1