Skip to content

Commit 233d476

Browse files
authored
Merge pull request #1954 from Saransh-cpp/failing-build-wheels
Fix building wheels on windows
2 parents f8adf2a + 873ea89 commit 233d476

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ jobs:
6262

6363
- name: Build 32 bits wheels on Windows
6464
if: matrix.os == 'windows-latest'
65-
run: python -m cibuildwheel --output-dir wheelhouse
65+
run: |
66+
choco install --yes visualstudio2019community
67+
choco install --yes visualstudio2019-workload-nativedesktop
68+
python -m cibuildwheel --output-dir wheelhouse
6669
env:
6770
CIBW_ENVIRONMENT: "PYBAMM_USE_VCPKG=ON VCPKG_ROOT_DIR=$VCPKG_INSTALLATION_ROOT VCPKG_DEFAULT_TRIPLET=x86-windows-static VCPKG_FEATURE_FLAGS=manifests,registries CMAKE_GENERATOR=\"Visual Studio 16 2019\" CMAKE_GENERATOR_PLATFORM=Win32"
6871
CIBW_ARCHS: "x86"

0 commit comments

Comments
 (0)