Commit a995e7d
committed
fix(ci): setup MSVC for x86 to fix dependency builds
The x86 (32-bit) build job was failing at "Install dependencies"
(uv sync --frozen --compile) because no cp314-win32 wheels exist for
packages like pyyaml/greenlet; they build from sdist and need the
32-bit MSVC C toolchain on the 64-bit windows-2025 runner.
- The initial attempt used ilammy/msvc-dev-cmd (Node 20). It produced
deprecation warnings under Node 24 forcing and did not reliably
activate the env.
- The first inline version (pwsh + vswhere + cmd child) did not make
the compiler visible to the subsequent uv step.
Replaced with a minimal native approach that is widely proven:
- shell: cmd step (avoids Node and pwsh quoting entirely)
- Direct call ...\\vcvarsall.bat amd64_x86 using the documented path
for the windows-2025 image (Visual Studio Enterprise 2022).
- set >> %GITHUB_ENV% to propagate PATH/INCLUDE/LIB etc.
- Added where cl + version check so the activation is visible in
logs for the Setup step.
Uses �md64_x86 (64-bit hosted tools targeting x86) which matches
how the VS components are installed on the runner and is the common
pattern for 32-bit extension builds on 64-bit CI hosts.
Keeps the change strictly to the CI x86 fix. No dep changes.1 parent 2b8fbfa commit a995e7d
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
47 | 72 | | |
48 | 73 | | |
49 | 74 | | |
| |||
0 commit comments