From aff7c5536fd74ba3d629d3caaac0c6cc071c56c6 Mon Sep 17 00:00:00 2001 From: Saransh Date: Mon, 28 Feb 2022 23:06:27 +0530 Subject: [PATCH 1/2] Manually install Visual Studio --- .github/workflows/build_wheels.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index f8dc0d1027..1297c33353 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -62,7 +62,10 @@ jobs: - name: Build 32 bits wheels on Windows if: matrix.os == 'windows-latest' - run: python -m cibuildwheel --output-dir wheelhouse + run: | + vcpkg install visualstudio2019community + vcpkg install visualstudio2019-workload-nativedesktop + python -m cibuildwheel --output-dir wheelhouse env: 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" CIBW_ARCHS: "x86" From 873ea8943c6f2b640845d1cd8b365a9b60230f07 Mon Sep 17 00:00:00 2001 From: Saransh Date: Mon, 28 Feb 2022 23:16:01 +0530 Subject: [PATCH 2/2] Use `choco` --- .github/workflows/build_wheels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 1297c33353..621e6fad63 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -63,8 +63,8 @@ jobs: - name: Build 32 bits wheels on Windows if: matrix.os == 'windows-latest' run: | - vcpkg install visualstudio2019community - vcpkg install visualstudio2019-workload-nativedesktop + choco install --yes visualstudio2019community + choco install --yes visualstudio2019-workload-nativedesktop python -m cibuildwheel --output-dir wheelhouse env: 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"