From 6ca077d139b9801e990651a5d2abd253c9156d77 Mon Sep 17 00:00:00 2001 From: mio Date: Sat, 1 Oct 2022 01:01:22 +0200 Subject: [PATCH] Build aarch64 wheel --- .github/workflows/PyPI-publishing.yml | 10 +++++++++- bindings/python/build_wheel_aarch64.sh | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 bindings/python/build_wheel_aarch64.sh diff --git a/.github/workflows/PyPI-publishing.yml b/.github/workflows/PyPI-publishing.yml index 143db4e7..5f64540a 100644 --- a/.github/workflows/PyPI-publishing.yml +++ b/.github/workflows/PyPI-publishing.yml @@ -46,6 +46,12 @@ jobs: python-ver: '3.8', name: 'manylinux2014_i686' } + - { + os: ubuntu-latest, + arch: x64, + python-ver: '3.8', + name: 'manylinux2014_aarch64' + } - { os: ubuntu-latest, arch: x64, @@ -101,7 +107,9 @@ jobs: cd bindings/python && python setup.py build -p win32 sdist bdist_wheel -p win32 rm dist/*.tar.gz elif [ ${{ matrix.config.name }} == 'manylinux2014_i686' ]; then - docker run --rm -v `pwd`/:/work dockcross/manylinux2014-x86 > ./dockcross + docker run --rm -v `pwd`/:/work quay.io/pypa/manylinux2014_aarch64 bash /work/bindings/python/build_wheel_aarch64.sh + elif [ ${{ matrix.config.name }} == 'manylinux2014_aarch64' ]; then + docker run --rm -v `pwd`/:/work dockcross/manylinux2014-aarch64 > ./dockcross chmod +x ./dockcross ./dockcross bindings/python/build_wheel.sh elif [ ${{ matrix.config.name }} == 'manylinux2014_x86_64' ]; then diff --git a/bindings/python/build_wheel_aarch64.sh b/bindings/python/build_wheel_aarch64.sh new file mode 100644 index 00000000..0e681242 --- /dev/null +++ b/bindings/python/build_wheel_aarch64.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +yum install python3 -y +python3 -m pip install -U setuptools wheel auditwheel +cd /work/bindings/python +python3 setup.py bdist_wheel + +cd dist +auditwheel repair *.whl +mv -f wheelhouse/*.whl .