Skip to content

Commit 06b93ea

Browse files
committed
.
1 parent 1fd1781 commit 06b93ea

File tree

1 file changed

+58
-19
lines changed

1 file changed

+58
-19
lines changed

.github/workflows/pysplashsurf_CI.yml

Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,30 +128,69 @@ jobs:
128128
manylinux: 2014
129129
- name: Audit wheels
130130
run: |
131-
pip3 install auditwheel
131+
pip install auditwheel
132132
auditwheel show wheelhouse/*.whl
133133
- name: Upload wheels
134134
uses: actions/upload-artifact@v4
135135
with:
136136
name: wheels-linux-${{ matrix.target }}
137137
path: wheelhouse
138138

139+
# macos_wheels:
140+
# name: Build wheels for "${{ matrix.python-version }}"
141+
# needs: generate-stub
142+
# runs-on: ${{ matrix.runner }}
143+
# strategy:
144+
# fail-fast: false
145+
# matrix:
146+
# include:
147+
# - runner: macos-13
148+
# python-version: "macosx_x86_64"
149+
# archs: "x86_64"
150+
# macosx_deployment_target: "13.0"
151+
# - runner: macos-14
152+
# python-version: "macosx_arm64"
153+
# archs: "arm64"
154+
# macosx_deployment_target: "14.0"
155+
# steps:
156+
# - uses: actions/checkout@v4
157+
# - name: Download stub artifact
158+
# uses: actions/download-artifact@v4
159+
# with:
160+
# name: pysplashsurf.pyi
161+
# path: pysplashsurf/pysplashsurf/
162+
# - uses: actions/setup-python@v5
163+
# with:
164+
# python-version: 3.12
165+
# - name: Install cibuildwheel
166+
# run: python -m pip install cibuildwheel==3.1.3
167+
# - name: Build wheels
168+
# run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
169+
# env:
170+
# CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
171+
# CIBW_ARCHS: ${{ matrix.archs }}
172+
# CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=${{ matrix.macosx_deployment_target }}"
173+
# CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
174+
# CIBW_TEST_SOURCES: "pysplashsurf/tests"
175+
# CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
176+
# - name: Upload wheels
177+
# uses: actions/upload-artifact@v4
178+
# with:
179+
# name: wheels-${{ matrix.python-version }}
180+
# path: wheelhouse
181+
139182
macos_wheels:
140-
name: Build wheels for "${{ matrix.python-version }}"
183+
name: Build wheels for macOS ${{ matrix.target }}
141184
needs: generate-stub
142185
runs-on: ${{ matrix.runner }}
143186
strategy:
144187
fail-fast: false
145188
matrix:
146189
include:
147190
- runner: macos-13
148-
python-version: "macosx_x86_64"
149-
archs: "x86_64"
150-
macosx_deployment_target: "13.0"
191+
target: x86_64
151192
- runner: macos-14
152-
python-version: "macosx_arm64"
153-
archs: "arm64"
154-
macosx_deployment_target: "14.0"
193+
target: aarch64
155194
steps:
156195
- uses: actions/checkout@v4
157196
- name: Download stub artifact
@@ -162,21 +201,21 @@ jobs:
162201
- uses: actions/setup-python@v5
163202
with:
164203
python-version: 3.12
165-
- name: Install cibuildwheel
166-
run: python -m pip install cibuildwheel==3.1.3
167204
- name: Build wheels
168-
run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
169-
env:
170-
CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
171-
CIBW_ARCHS: ${{ matrix.archs }}
172-
CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=${{ matrix.macosx_deployment_target }}"
173-
CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
174-
CIBW_TEST_SOURCES: "pysplashsurf/tests"
175-
CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
205+
uses: PyO3/maturin-action@v1
206+
with:
207+
target: ${{ matrix.target }}
208+
args: --release --out wheelhouse -m pysplashsurf/Cargo.toml
209+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
210+
manylinux: auto
211+
- name: Audit wheels
212+
run: |
213+
pip install delocate
214+
delocate-wheel -v wheelhouse/*.whl
176215
- name: Upload wheels
177216
uses: actions/upload-artifact@v4
178217
with:
179-
name: wheels-${{ matrix.python-version }}
218+
name: wheels-linux-${{ matrix.target }}
180219
path: wheelhouse
181220

182221
windows_wheels:

0 commit comments

Comments
 (0)