Skip to content

Commit

Permalink
extend cibuildwheel & fix musllinux
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 committed Oct 22, 2024
1 parent ff2ae58 commit 4c5071d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
with:
path: ./wheelhouse/*.whl

build_wheels_ubuntu:
name: Buld wheels on ubuntu-latest
build_manylinux_wheels_ubuntu:
name: Build manylinux wheels on ubuntu-latest
runs-on: ubuntu-latest
needs: [build_sdist]

Expand All @@ -70,7 +70,33 @@ jobs:
uses: joerick/[email protected]
env:
CIBW_TEST_SKIP: "*"
CIBW_SKIP: "pp*"
CIBW_SKIP: "pp* *-musllinux*"

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

build_musllinux_wheels_ubuntu:
name: Build musllinux wheels on ubuntu-latest
runs-on: ubuntu-latest
needs: [build_sdist]

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: joerick/[email protected]
env:
CIBW_TEST_SKIP: "*"
CIBW_SKIP: "pp* *-manylinux*"
CIBW_REPAIR_WHEEL_COMMAND: ''

- uses: actions/upload-artifact@v3
with:
Expand All @@ -79,7 +105,7 @@ jobs:

upload_pypi:
name: Publish to PyPI
needs: [build_wheels, build_wheels_ubuntu, build_sdist]
needs: [build_wheels, build_manylinux_wheels_ubuntu, build_musllinux_wheels_ubuntu, build_sdist]
runs-on: ubuntu-latest

permissions:
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,12 @@ tests = ["pytest", "pillow", "psutil"]

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.cibuildwheel.linux]
archs = ["x86_64", "i686", "aarch64", "armv7l"]

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]

[tool.cibuildwheel.windows]
archs = ["AMD64", "x86", "ARM64"]

0 comments on commit 4c5071d

Please sign in to comment.