Skip to content

Commit a79f3a2

Browse files
committed
improve build scripting
1 parent 9fb6a3e commit a79f3a2

File tree

1 file changed

+42
-8
lines changed

1 file changed

+42
-8
lines changed

.github/workflows/releasebuild.yml

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,14 @@ jobs:
5454
path: dist/*.tar.gz
5555

5656
build_wheels_windows:
57-
name: Build wheel on windows-latest/${{matrix.arch}}
57+
name: Build wheel on ${{ matrix.os }}/auto
5858
needs: [build_sdist]
59-
runs-on: windows-latest
59+
runs-on: ${{ matrix.os }}
6060
strategy:
6161
fail-fast: false
6262
matrix:
63-
arch: [auto32, auto64, ARM64]
63+
os: [windows-latest, windows-11-arm]
6464
env:
65-
CIBW_ARCHS: ${{matrix.arch}}
6665
CIBW_TEST_SKIP: "*-win32"
6766
CIBW_BUILD_VERBOSITY: 3
6867

@@ -90,15 +89,14 @@ jobs:
9089
path: ./wheelhouse/*.whl
9190

9291
build_wheels_macos:
93-
name: Build wheel on ${{ matrix.os }}/native
92+
name: Build wheel on ${{ matrix.os }}/auto
9493
needs: [build_sdist]
9594
runs-on: ${{ matrix.os }}
9695
strategy:
9796
fail-fast: false
9897
matrix:
9998
os: [macos-13, macos-14]
10099
env:
101-
CIBW_ARCHS: native
102100
CIBW_TEST_SKIP: "pp*-macosx_*"
103101
CIBW_BUILD_VERBOSITY: 3
104102

@@ -132,7 +130,7 @@ jobs:
132130
strategy:
133131
fail-fast: false
134132
matrix:
135-
arch: [auto, aarch64, ppc64le, s390x]
133+
arch: [auto, ppc64le, s390x]
136134
python_tag: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
137135
env:
138136
CIBW_ARCHS_LINUX: ${{matrix.arch}}
@@ -171,13 +169,49 @@ jobs:
171169
name: artifact-${{ github.job }}-${{ strategy.job-index }}
172170
path: ./wheelhouse/*.whl
173171

172+
build_wheels_linux_arm:
173+
name: Build wheels on ubuntu-24.04-arm/aarch64/${{matrix.python_tag}}
174+
needs: [build_sdist]
175+
runs-on: ubuntu-24.04-arm
176+
strategy:
177+
fail-fast: false
178+
matrix:
179+
python_tag: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
180+
env:
181+
CIBW_BUILD: ${{matrix.python_tag}}
182+
CIBW_TEST_SKIP: "{*_{aarch64,ppc64le,s390x},*musllinux_*}"
183+
CIBW_BUILD_VERBOSITY: 3
184+
185+
steps:
186+
- uses: actions/download-artifact@v5
187+
with:
188+
name: artifact-sdist
189+
path: dist
190+
191+
- uses: actions/setup-python@v5
192+
193+
- name: Copy wheel
194+
run: cp dist/*.tar.gz rapidfuzz.tar.gz
195+
196+
- name: Build wheel
197+
uses: pypa/[email protected]
198+
with:
199+
package-dir: rapidfuzz.tar.gz
200+
output-dir: wheelhouse
201+
202+
- name: Upload wheels
203+
uses: actions/upload-artifact@v4
204+
with:
205+
name: artifact-${{ github.job }}-${{ strategy.job-index }}
206+
path: ./wheelhouse/*.whl
207+
174208
build_wheels_pyodide:
175209
name: Build wheels on ubuntu-latest/pyodide
176210
needs: [build_sdist]
177211
runs-on: ubuntu-latest
178212
env:
179213
CIBW_PLATFORM: pyodide
180-
CIBW_BUILD_VERBOSITY: 3
214+
#CIBW_BUILD_VERBOSITY: 3
181215

182216
steps:
183217
- uses: actions/download-artifact@v5

0 commit comments

Comments
 (0)