Build aarch64 wheel
This commit is contained in:
10
.github/workflows/PyPI-publishing.yml
vendored
10
.github/workflows/PyPI-publishing.yml
vendored
@@ -46,6 +46,12 @@ jobs:
|
|||||||
python-ver: '3.8',
|
python-ver: '3.8',
|
||||||
name: 'manylinux2014_i686'
|
name: 'manylinux2014_i686'
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
os: ubuntu-latest,
|
||||||
|
arch: x64,
|
||||||
|
python-ver: '3.8',
|
||||||
|
name: 'manylinux2014_aarch64'
|
||||||
|
}
|
||||||
- {
|
- {
|
||||||
os: ubuntu-latest,
|
os: ubuntu-latest,
|
||||||
arch: x64,
|
arch: x64,
|
||||||
@@ -101,7 +107,9 @@ jobs:
|
|||||||
cd bindings/python && python setup.py build -p win32 sdist bdist_wheel -p win32
|
cd bindings/python && python setup.py build -p win32 sdist bdist_wheel -p win32
|
||||||
rm dist/*.tar.gz
|
rm dist/*.tar.gz
|
||||||
elif [ ${{ matrix.config.name }} == 'manylinux2014_i686' ]; then
|
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
|
chmod +x ./dockcross
|
||||||
./dockcross bindings/python/build_wheel.sh
|
./dockcross bindings/python/build_wheel.sh
|
||||||
elif [ ${{ matrix.config.name }} == 'manylinux2014_x86_64' ]; then
|
elif [ ${{ matrix.config.name }} == 'manylinux2014_x86_64' ]; then
|
||||||
|
|||||||
10
bindings/python/build_wheel_aarch64.sh
Normal file
10
bindings/python/build_wheel_aarch64.sh
Normal 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 .
|
||||||
Reference in New Issue
Block a user