Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wheels musllinux #9

Merged
merged 1 commit into from
Sep 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 166 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,176 @@ jobs:
name: wheels
path: dist

build_wheels_x86_64:
name: Build musl wheels on x86_64
runs-on: ubuntu-latest

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
CIBW_BEFORE_BUILD: "pip3 install 'maturin>=0.10,<0.11'"
CIBW_ARCHS_LINUX: "auto64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "*-musllinux_x86_64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"

steps:
- uses: actions/checkout@v3

- name: add additional package
run: sudo apt-get install patchelf

- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist

- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

build_wheels_python38:
name: Build wheels on aarch64 for python3.8
runs-on: ubuntu-latest

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "cp38-musllinux_aarch64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"

steps:
- uses: actions/checkout@v3

- name: add additional package
run: sudo apt-get install patchelf

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist


- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

build_wheels_python39:
name: Build wheels on aarch64 for python3.9
runs-on: ubuntu-latest

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "cp39-musllinux_aarch64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"

steps:
- uses: actions/checkout@v3

- name: add additional package
run: sudo apt-get install patchelf

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist


- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

build_wheels_python310:
name: Build wheels on aarch64 for python3.10
runs-on: ubuntu-latest

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "cp310-musllinux_aarch64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"

steps:
- uses: actions/checkout@v3

- name: add additional package
run: sudo apt-get install patchelf

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist


- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

build_wheels_python311:
name: Build wheels on aarch64 for python3.11
runs-on: ubuntu-latest

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "cp311-musllinux_aarch64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-*"

steps:
- uses: actions/checkout@v3

- name: add additional package
run: sudo apt-get install patchelf

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist


- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ macos, windows, linux ]
needs: [ macos, windows, linux, build_wheels_x86_64, build_wheels_python38, build_wheels_python39, build_wheels_python310, build_wheels_python311]
steps:
- uses: actions/download-artifact@v2
with:
Expand Down