Skip to content

Commit 8615ada

Browse files
committed
.
1 parent 78054dc commit 8615ada

File tree

1 file changed

+52
-19
lines changed

1 file changed

+52
-19
lines changed

.github/workflows/pysplashsurf_CI.yml

Lines changed: 52 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,8 @@ jobs:
205205
uses: PyO3/maturin-action@v1
206206
with:
207207
target: ${{ matrix.target }}
208-
args: --release --out wheelhouse --auditwheel repair -m pysplashsurf/Cargo.toml
208+
args: --release --out wheelhouse -m pysplashsurf/Cargo.toml
209209
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
210-
manylinux: 2014
211210
- name: Audit & fix wheels
212211
run: |
213212
pip install delocate
@@ -218,18 +217,53 @@ jobs:
218217
name: wheels-macos-${{ matrix.target }}
219218
path: wheelhouse
220219

220+
# windows_wheels:
221+
# name: Build wheels for "${{ matrix.python-version }}"
222+
# needs: generate-stub
223+
# runs-on: windows-latest
224+
# strategy:
225+
# fail-fast: false
226+
# matrix:
227+
# include:
228+
# - archs: "AMD64"
229+
# python-version: "win_amd64"
230+
# - archs: "x86"
231+
# python-version: "win32"
232+
# steps:
233+
# - uses: actions/checkout@v4
234+
# - name: Download stub artifact
235+
# uses: actions/download-artifact@v4
236+
# with:
237+
# name: pysplashsurf.pyi
238+
# path: pysplashsurf/pysplashsurf/
239+
# - uses: actions/setup-python@v5
240+
# with:
241+
# python-version: 3.12
242+
# - name: Install cibuildwheel
243+
# run: python -m pip install cibuildwheel==3.1.3
244+
# - name: Build wheels
245+
# run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
246+
# env:
247+
# CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
248+
# CIBW_ARCHS: ${{ matrix.archs }}
249+
# # Tests are broken on Windows because trimesh library tries to write temporary files which fails
250+
# #CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
251+
# #CIBW_TEST_SOURCES: "pysplashsurf/tests"
252+
# #CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
253+
# - name: Upload wheels
254+
# uses: actions/upload-artifact@v4
255+
# with:
256+
# name: wheels-${{ matrix.python-version }}
257+
# path: wheelhouse
258+
221259
windows_wheels:
222-
name: Build wheels for "${{ matrix.python-version }}"
260+
name: Build wheels for Windows ${{ matrix.target }}
223261
needs: generate-stub
224262
runs-on: windows-latest
225263
strategy:
226264
fail-fast: false
227265
matrix:
228-
include:
229-
- archs: "AMD64"
230-
python-version: "win_amd64"
231-
- archs: "x86"
232-
python-version: "win32"
266+
target: [x86_64, x86]
233267
steps:
234268
- uses: actions/checkout@v4
235269
- name: Download stub artifact
@@ -240,21 +274,20 @@ jobs:
240274
- uses: actions/setup-python@v5
241275
with:
242276
python-version: 3.12
243-
- name: Install cibuildwheel
244-
run: python -m pip install cibuildwheel==3.1.3
245277
- name: Build wheels
246-
run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
247-
env:
248-
CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
249-
CIBW_ARCHS: ${{ matrix.archs }}
250-
# Tests are broken on Windows because trimesh library tries to write temporary files which fails
251-
#CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
252-
#CIBW_TEST_SOURCES: "pysplashsurf/tests"
253-
#CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
278+
uses: PyO3/maturin-action@v1
279+
with:
280+
target: ${{ matrix.target }}
281+
args: --release --out wheelhouse -m pysplashsurf/Cargo.toml
282+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
283+
- name: Audit & fix wheels
284+
run: |
285+
pip install delvewheel
286+
delvewheel repair -v wheelhouse/*.whl
254287
- name: Upload wheels
255288
uses: actions/upload-artifact@v4
256289
with:
257-
name: wheels-${{ matrix.python-version }}
290+
name: wheels-windows-${{ matrix.target }}
258291
path: wheelhouse
259292

260293
sdist:

0 commit comments

Comments
 (0)