Skip to content

Commit

Permalink
Merge pull request DEAP#559 from odidev/aarch64_build
Browse files Browse the repository at this point in the history
Add aarch64 wheel support
  • Loading branch information
fmder authored May 8, 2021
2 parents d328fe6 + b063760 commit f4b7775
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,39 @@ jobs:
- script: |
$(python) -m twine upload -r pypi -u $(twineUsername) -p $(twinePassword) --skip-existing --disable-progress-bar wheelhouse-manylinux/*
displayName: 'Publish wheel to PyPi'
- job: AArch64_Manylinux2014Build
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Py36 Arm64:
python.version: 'cp36-cp36m'
manylinux: 'manylinux_aarch64'
Py37 Arm64:
python.version: 'cp37-cp37m'
manylinux: 'manylinux_aarch64'
Py38 Arm64:
python.version: 'cp38-cp38'
manylinux: 'manylinux_aarch64'
Py39 Arm64:
python.version: 'cp39-cp39'
manylinux: 'manylinux_aarch64'
steps:
- script: docker run --rm --privileged hypriot/qemu-register
displayName: 'Registering qemu'
- script: |
docker run -v $(pwd):"${DOCKER_ROOT_DIRECTORY}":rw,z \
-e HOST_USER_ID \
"quay.io/pypa/manylinux2014_aarch64:latest" \
bash -c "cd $DOCKER_ROOT_DIRECTORY;
"${PYBIN}/pip" install --upgrade pip && \
"${PYBIN}/pip" install twine numpy && \
"${PYBIN}/pip" wheel . -w wheelhouse/ && \
auditwheel repair wheelhouse/deap*.whl --plat manylinux2014_aarch64 -w wheelhouse-manylinux && \
"${PYBIN}/python" -m twine upload -r pypi -u $(twineUsername) -p $(twinePassword) --skip-existing --disable-progress-bar wheelhouse-manylinux/*"
displayName: 'Running AArch64 build'
env:
DOCKER_ROOT_DIRECTORY: "/home/source_root"
HOST_USER_ID: $(id -u)
PYBIN: /opt/python/$(python.version)/bin

0 comments on commit f4b7775

Please sign in to comment.