Skip to content

Commit 491b753

Browse files
authored
try test build of windows wheel
1 parent 495fa55 commit 491b753

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
strategy:
100100
fail-fast: false
101101
matrix:
102-
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13]
102+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13, windows-latest]
103103
python: [313]
104104
arch: [auto64]
105105

@@ -117,6 +117,12 @@ jobs:
117117
brew install m4 make automake autoconf libtool swig boost cgal --ignore-dependencies
118118
echo "PATH=/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" >> "$GITHUB_ENV"
119119
120+
- name: Install compiler tools on windows
121+
if: runner.os == 'windows'
122+
run: |
123+
choco install boost-msvc-14.1
124+
vcpkg.exe install cgal getopt
125+
120126
- name: Install extra deps on Linux
121127
if: runner.os == 'Linux'
122128
run: sudo apt-get update && sudo apt-get install -y libboost-dev libmpfr-dev swig libcgal-dev
@@ -165,6 +171,15 @@ jobs:
165171
CIBW_ARCHS: ${{ matrix.arch }}
166172
CIBW_BUILD: cp${{ matrix.python }}-*
167173
CIBW_BUILD_VERBOSITY: 2
174+
CIBW_BUILD_FRONTEND: "pip; args: -C'cmake.define.GMP_DLL_TO_COPY'='C:\\vcpkg\\packages\\gmp_x64-windows\\bin\\gmp-10.dll'"
175+
CIBW_ENVIRONMENT_WINDOWS: >
176+
CGAL_DIR='C:\vcpkg\packages\cgal_x64-windows\share\cgal'
177+
GMP_INC_DIR='C:\vcpkg\packages\gmp_x64-windows\include'
178+
GMP_LIB_DIR='C:\vcpkg\packages\gmp_x64-windows\lib'
179+
MPFR_INC_DIR='C:\vcpkg\packages\mpfr_x64-windows\include'
180+
MPFR_LIB_DIR='C:\vcpkg\packages\mpfr_x64-windows\lib'
181+
CMAKE_PREFIX_PATH="C:\vcpkg\packages\getopt-win32_x64-windows\share\unofficial-getopt-win32;$CMAKE_PREFIX_PATH"
182+
168183
169184
- name: Upload wheels
170185
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)