Skip to content

Commit 29e1f87

Browse files
authored
add windows to full wheel matrix; reduce cibw verbosity
1 parent 97e4e88 commit 29e1f87

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
python: [39, 310, 311, 312, 313]
37-
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13]
37+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13, windows-latest]
3838
arch: [auto64]
3939

4040
steps:
@@ -51,6 +51,12 @@ jobs:
5151
brew install m4 make automake autoconf libtool swig boost cgal --ignore-dependencies
5252
echo "PATH=/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" >> "$GITHUB_ENV"
5353
54+
- name: Install compiler tools on windows
55+
if: runner.os == 'windows'
56+
run: |
57+
choco install boost-msvc-14.1
58+
vcpkg.exe install cgal getopt
59+
5460
- name: Clone gmp
5561
if: runner.os == 'macOS'
5662
uses: actions/checkout@v4
@@ -95,7 +101,16 @@ jobs:
95101
env:
96102
CIBW_ARCHS: ${{ matrix.arch }}
97103
CIBW_BUILD: cp${{ matrix.python }}-*
98-
CIBW_BUILD_VERBOSITY: 2
104+
CIBW_BUILD_VERBOSITY: 1
105+
CIBW_CONFIG_SETTINGS_WINDOWS: >
106+
"cmake.define.GMP_DLL_TO_COPY"="C:\\vcpkg\\packages\\gmp_x64-windows\\bin\\gmp-10.dll"
107+
"cmake.define.unofficial-getopt-win32_DIR"="C:\\vcpkg\\packages\\getopt-win32_x64-windows\\share\\unofficial-getopt-win32"
108+
CIBW_ENVIRONMENT_WINDOWS: >
109+
CGAL_DIR='C:\vcpkg\packages\cgal_x64-windows\share\cgal'
110+
GMP_INC_DIR='C:\vcpkg\packages\gmp_x64-windows\include'
111+
GMP_LIB_DIR='C:\vcpkg\packages\gmp_x64-windows\lib'
112+
MPFR_INC_DIR='C:\vcpkg\packages\mpfr_x64-windows\include'
113+
MPFR_LIB_DIR='C:\vcpkg\packages\mpfr_x64-windows\lib'
99114
100115
- name: Upload wheels
101116
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)