Skip to content

Commit 4c5071d

Browse files
committed
extend cibuildwheel & fix musllinux
1 parent ff2ae58 commit 4c5071d

File tree

2 files changed

+39
-4
lines changed

2 files changed

+39
-4
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
with:
5252
path: ./wheelhouse/*.whl
5353

54-
build_wheels_ubuntu:
55-
name: Buld wheels on ubuntu-latest
54+
build_manylinux_wheels_ubuntu:
55+
name: Build manylinux wheels on ubuntu-latest
5656
runs-on: ubuntu-latest
5757
needs: [build_sdist]
5858

@@ -70,7 +70,33 @@ jobs:
7070
uses: joerick/[email protected]
7171
env:
7272
CIBW_TEST_SKIP: "*"
73-
CIBW_SKIP: "pp*"
73+
CIBW_SKIP: "pp* *-musllinux*"
74+
75+
- uses: actions/upload-artifact@v3
76+
with:
77+
path: ./wheelhouse/*.whl
78+
79+
build_musllinux_wheels_ubuntu:
80+
name: Build musllinux wheels on ubuntu-latest
81+
runs-on: ubuntu-latest
82+
needs: [build_sdist]
83+
84+
steps:
85+
- uses: actions/checkout@v4
86+
with:
87+
submodules: recursive
88+
89+
- name: Set up QEMU
90+
uses: docker/setup-qemu-action@v3
91+
with:
92+
platforms: all
93+
94+
- name: Build wheels
95+
uses: joerick/[email protected]
96+
env:
97+
CIBW_TEST_SKIP: "*"
98+
CIBW_SKIP: "pp* *-manylinux*"
99+
CIBW_REPAIR_WHEEL_COMMAND: ''
74100

75101
- uses: actions/upload-artifact@v3
76102
with:
@@ -79,7 +105,7 @@ jobs:
79105

80106
upload_pypi:
81107
name: Publish to PyPI
82-
needs: [build_wheels, build_wheels_ubuntu, build_sdist]
108+
needs: [build_wheels, build_manylinux_wheels_ubuntu, build_musllinux_wheels_ubuntu, build_sdist]
83109
runs-on: ubuntu-latest
84110

85111
permissions:

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,12 @@ tests = ["pytest", "pillow", "psutil"]
6666

6767
[tool.pytest.ini_options]
6868
testpaths = ["tests"]
69+
70+
[tool.cibuildwheel.linux]
71+
archs = ["x86_64", "i686", "aarch64", "armv7l"]
72+
73+
[tool.cibuildwheel.macos]
74+
archs = ["x86_64", "arm64"]
75+
76+
[tool.cibuildwheel.windows]
77+
archs = ["AMD64", "x86", "ARM64"]

0 commit comments

Comments
 (0)