Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Add linux aarch64 wheel build support
Browse files Browse the repository at this point in the history
Signed-off-by: odidev <[email protected]>
  • Loading branch information
odidev committed Nov 29, 2021
1 parent 48d2cc9 commit 0d354b1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/manylinux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,39 @@ jobs:
working-directory: python
run: |
twine upload target/wheels/*whl -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASS }}
build-aarch64:
strategy:
matrix:
pyver: [cp37-cp37m, cp38-cp38, cp39-cp39]
runs-on: ubuntu-latest
env:
py: /opt/python/${{ matrix.pyver }}/bin/python
img: quay.io/pypa/manylinux2014_aarch64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Build Wheel
run: |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
${{ env.img }} \
bash -exc '${{ env.py }} -m venv .env && \
source .env/bin/activate && \
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && \
source $HOME/.cargo/env && \
cargo test && \
pip install --upgrade pip && \
pip install poetry maturin && \
cd python && \
poetry install && \
poetry run which python && \
poetry run maturin develop && \
poetry run pytest && \
maturin build --no-sdist --release --strip -i ${{ env.py }} && \
for WHL in target/wheels/*whl; do auditwheel repair ${WHL}; done && \
twine upload target/wheels/*manylinux2014_aarch64.whl --repository-url https://test.pypi.org/legacy/ -u ${{ secrets.TEST_PYPI_USER }} -p ${{ secrets.TEST_PYPI_PASS }} && \
twine upload target/wheels/*manylinux2014_aarch64.whl -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASS }} && \
deactivate'

0 comments on commit 0d354b1

Please sign in to comment.