Skip to content

Commit 8576454

Browse files
committed
Fix Windows CI
1 parent cd07943 commit 8576454

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/windows-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ jobs:
4444
run: |
4545
python -m pip install pytest numpy highsbox llvmlite tccbox
4646
47+
- name: Install VS2022 BuildTools 17.9.7
48+
run: choco install -y visualstudio2022buildtools --version=117.9.7.0 --params "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --installChannelUri https://aka.ms/vs/17/release/180911598_-255012421/channel"
49+
4750
- name: Build
4851
run: |
52+
Import-Module 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll'
53+
Enter-VsDevShell -VsInstallPath 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools' -DevCmdArguments '-arch=x64 -host_arch=x64'
4954
python -m pip list
5055
python -m pip install nanobind scikit-build-core[pyproject]
5156
python -m pip install --no-build-isolation -v .

0 commit comments

Comments
 (0)