Skip to content

Commit 8aab135

Browse files
committed
.
1 parent ebf44b6 commit 8aab135

File tree

1 file changed

+25
-34
lines changed

1 file changed

+25
-34
lines changed

.github/workflows/pysplashsurf_CI.yml

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,20 @@ jobs:
3838
path: pysplashsurf/pysplashsurf/
3939

4040
linux:
41-
name: Build wheels ${{ matrix.platform.python-version }}
41+
name: Build wheels ${{ matrix.python-version }}
4242
needs: generate-stub
43-
runs-on: ${{ matrix.platform.runner }}
43+
runs-on: ubuntu-24.04
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
platform:
48-
- runner: ubuntu-24.04
49-
python-version: "manylinux_x86_64"
47+
include:
48+
- python-version: "manylinux_x86_64"
5049
archs: "x86_64"
51-
- runner: ubuntu-24.04
52-
python-version: "manylinux_i686"
50+
- python-version: "manylinux_i686"
5351
archs: "i686"
54-
- runner: ubuntu-24.04
55-
python-version: "manylinux_aarch64"
52+
- python-version: "manylinux_aarch64"
5653
archs: "aarch64"
57-
- runner: ubuntu-24.04
58-
python-version: "manylinux_armv7l"
54+
- python-version: "manylinux_armv7l"
5955
archs: "armv7l"
6056
steps:
6157
- uses: actions/checkout@v4
@@ -79,8 +75,8 @@ jobs:
7975
- name: Build wheels
8076
run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
8177
env:
82-
CIBW_BUILD: ${{ format('cp312-{0}', matrix.platform.python-version) }}
83-
CIBW_ARCHS: ${{ matrix.platform.archs }}
78+
CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
79+
CIBW_ARCHS: ${{ matrix.archs }}
8480
CIBW_BEFORE_ALL: curl -sSf https://sh.rustup.rs | sh -s -- -y
8581
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH"
8682
CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
@@ -89,17 +85,17 @@ jobs:
8985
- name: Upload wheels
9086
uses: actions/upload-artifact@v4
9187
with:
92-
name: wheels-${{ matrix.platform.python-version }}
88+
name: wheels-${{ matrix.python-version }}
9389
path: wheelhouse
9490

9591
macos:
96-
name: Build wheels ${{ matrix.platform.python-version }}
92+
name: Build wheels ${{ matrix.python-version }}
9793
needs: generate-stub
98-
runs-on: ${{ matrix.platform.runner }}
94+
runs-on: ${{ matrix.runner }}
9995
strategy:
10096
fail-fast: false
10197
matrix:
102-
platform:
98+
include:
10399
- runner: macos-13
104100
python-version: "macosx_x86_64"
105101
archs: "x86_64"
@@ -123,34 +119,32 @@ jobs:
123119
- name: Build wheels
124120
run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
125121
env:
126-
CIBW_BUILD: ${{ format('cp312-{0}', matrix.platform.python-version) }}
127-
CIBW_ARCHS: ${{ matrix.platform.archs }}
122+
CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
123+
CIBW_ARCHS: ${{ matrix.archs }}
128124
CIBW_BEFORE_ALL: curl -sSf https://sh.rustup.rs | sh -s -- -y
129125
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH"
130126
CIBW_ENVIRONMENT_MACOS: >-
131-
PATH=$HOME/.cargo/bin:$PATH MACOSX_DEPLOYMENT_TARGET=${{ matrix.platform.macosx_deployment_target }}
127+
PATH=$HOME/.cargo/bin:$PATH MACOSX_DEPLOYMENT_TARGET=${{ matrix.macosx_deployment_target }}
132128
CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
133129
CIBW_TEST_SOURCES: "pysplashsurf/tests"
134130
CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
135131
- name: Upload wheels
136132
uses: actions/upload-artifact@v4
137133
with:
138-
name: wheels-${{ matrix.platform.python-version }}
134+
name: wheels-${{ matrix.python-version }}
139135
path: wheelhouse
140136

141137
windows:
142-
name: Build wheels ${{ matrix.platform.python-version }}
138+
name: Build wheels ${{ matrix.python-version }}
143139
needs: generate-stub
144-
runs-on: ${{ matrix.platform.runner }}
140+
runs-on: windows-latest
145141
strategy:
146142
fail-fast: false
147143
matrix:
148-
platform:
149-
- runner: windows-latest
150-
archs: "AMD64"
144+
include:
145+
- archs: "AMD64"
151146
python-version: "win_amd64"
152-
- runner: windows-latest
153-
archs: "x86"
147+
- archs: "x86"
154148
python-version: "win32"
155149
steps:
156150
- uses: actions/checkout@v4
@@ -167,20 +161,17 @@ jobs:
167161
- name: Build wheels
168162
run: python -m cibuildwheel --output-dir wheelhouse pysplashsurf
169163
env:
170-
CIBW_BUILD: ${{ format('cp312-{0}', matrix.platform.python-version) }}
171-
CIBW_ARCHS: ${{ matrix.platform.archs }}
164+
CIBW_BUILD: ${{ format('cp312-{0}', matrix.python-version) }}
165+
CIBW_ARCHS: ${{ matrix.archs }}
172166
CIBW_BEFORE_ALL: curl -sSf https://sh.rustup.rs | sh -s -- -y
173-
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH"
174-
CIBW_ENVIRONMENT_MACOS: >-
175-
PATH=$HOME/.cargo/bin:$PATH MACOSX_DEPLOYMENT_TARGET=${{ matrix.platform.macosx_deployment_target }}
176167
# Tests are broken on Windows because trimesh library tries to write temporary files which fails
177168
#CIBW_TEST_COMMAND: "cargo install --path {project}/splashsurf && pytest pysplashsurf/tests"
178169
#CIBW_TEST_SOURCES: "pysplashsurf/tests"
179170
#CIBW_TEST_REQUIRES: pytest meshio trimesh rtree scipy
180171
- name: Upload wheels
181172
uses: actions/upload-artifact@v4
182173
with:
183-
name: wheels-${{ matrix.platform.python-version }}
174+
name: wheels-${{ matrix.python-version }}
184175
path: wheelhouse
185176

186177
sdist:

0 commit comments

Comments
 (0)