Build aarch64 wheel

This commit is contained in:
mio 2022-10-01 01:01:22 +02:00
parent c144f06145
commit 6ca077d139
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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 .