Skip to content

Commit 89c7ef4

Browse files
authored
Update releasebuild.yml
1 parent e0f86a4 commit 89c7ef4

File tree

1 file changed

+3
-114
lines changed

1 file changed

+3
-114
lines changed

.github/workflows/releasebuild.yml

Lines changed: 3 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -53,108 +53,14 @@ jobs:
5353
name: artifact-sdist
5454
path: dist/*.tar.gz
5555

56-
build_wheels_windows:
57-
name: Build wheel on windows-latest/${{matrix.arch}}
58-
needs: [build_sdist]
59-
runs-on: windows-latest
60-
strategy:
61-
fail-fast: false
62-
matrix:
63-
arch: [auto32, auto64, ARM64]
64-
env:
65-
CIBW_ARCHS: ${{matrix.arch}}
66-
CIBW_TEST_SKIP: "*-win32"
67-
#CIBW_TEST_REQUIRES: pytest hypothesis pandas
68-
CIBW_TEST_REQUIRES: pytest hypothesis
69-
CIBW_TEST_COMMAND: pytest {package}/tests
70-
CIBW_BUILD_VERBOSITY: 3
71-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
72-
73-
steps:
74-
- uses: actions/download-artifact@v4
75-
with:
76-
name: artifact-sdist
77-
path: dist
78-
79-
- name: Copy wheel
80-
run: copy dist/*.tar.gz rapidfuzz.tar.gz
81-
82-
- uses: actions/setup-python@v5
83-
84-
- name: Build wheels
85-
uses: pypa/[email protected]
86-
with:
87-
package-dir: rapidfuzz.tar.gz
88-
output-dir: wheelhouse
89-
90-
- name: Upload wheels
91-
uses: actions/upload-artifact@v4
92-
with:
93-
name: artifact-${{ github.job }}-${{ strategy.job-index }}
94-
path: ./wheelhouse/*.whl
95-
96-
build_wheels_macos:
97-
name: Build wheel on ${{ matrix.os }}/native
98-
needs: [build_sdist]
99-
runs-on: ${{ matrix.os }}
100-
strategy:
101-
fail-fast: false
102-
matrix:
103-
os: [macos-13, macos-14]
104-
env:
105-
CIBW_ARCHS: native
106-
CIBW_TEST_SKIP: "pp*-macosx_*"
107-
#CIBW_TEST_REQUIRES: pytest hypothesis pandas
108-
CIBW_TEST_REQUIRES: pytest hypothesis
109-
CIBW_TEST_COMMAND: pytest {package}/tests
110-
CIBW_BUILD_VERBOSITY: 3
111-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
112-
113-
steps:
114-
- uses: actions/download-artifact@v4
115-
with:
116-
name: artifact-sdist
117-
path: dist
118-
119-
- uses: actions/setup-python@v5
120-
121-
- name: Copy wheel
122-
run: cp dist/*.tar.gz rapidfuzz.tar.gz
123-
124-
- name: Build wheels
125-
uses: pypa/[email protected]
126-
with:
127-
package-dir: rapidfuzz.tar.gz
128-
output-dir: wheelhouse
129-
130-
- name: Upload wheels
131-
uses: actions/upload-artifact@v4
132-
with:
133-
name: artifact-${{ github.job }}-${{ strategy.job-index }}
134-
path: ./wheelhouse/*.whl
135-
13656
build_wheels_linux:
13757
name: Build wheels on ubuntu-latest/${{matrix.arch}}/${{matrix.python_tag}}
13858
needs: [build_sdist]
13959
runs-on: ubuntu-latest
140-
strategy:
141-
fail-fast: false
142-
matrix:
143-
arch: [auto, aarch64, ppc64le, s390x]
144-
python_tag: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "pp39-*", "pp310-*"]
145-
exclude:
146-
# PyPy builds not available for these platforms
147-
- arch: ppc64le
148-
python_tag: "pp39-*"
149-
- arch: ppc64le
150-
python_tag: "pp310-*"
151-
- arch: s390x
152-
python_tag: "pp39-*"
153-
- arch: s390x
154-
python_tag: "pp310-*"
15560
env:
156-
CIBW_ARCHS_LINUX: ${{matrix.arch}}
157-
CIBW_BUILD: ${{matrix.python_tag}}
61+
CIBW_ARCHS_LINUX: wasm32
62+
CIBW_BUILD: cp312
63+
CIBW_PLATFORM: pyodide
15864
CIBW_TEST_SKIP: "{*_{aarch64,ppc64le,s390x},*musllinux_*}"
15965
#CIBW_TEST_REQUIRES: pytest hypothesis pandas
16066
CIBW_TEST_REQUIRES: pytest hypothesis
@@ -187,20 +93,3 @@ jobs:
18793
with:
18894
name: artifact-${{ github.job }}-${{ strategy.job-index }}
18995
path: ./wheelhouse/*.whl
190-
191-
deploy-wheels:
192-
if: github.event_name == 'release' && github.event.action == 'published'
193-
needs: [build_wheels_windows, build_wheels_macos, build_wheels_linux, build_sdist]
194-
name: deploy wheels to pypi
195-
runs-on: ubuntu-latest
196-
environment: pypi-release
197-
permissions:
198-
id-token: write
199-
steps:
200-
- uses: actions/download-artifact@v4
201-
with:
202-
path: dist
203-
pattern: artifact-*
204-
merge-multiple: true
205-
206-
- uses: pypa/[email protected]

0 commit comments

Comments
 (0)