|
1 | 1 | #!/bin/bash -xe |
| 2 | +# This file is part of ssh-python. |
| 3 | +# Copyright (C) 2017-2022 Panos Kittenis and contributors. |
| 4 | +# |
| 5 | +# This library is free software; you can redistribute it and/or |
| 6 | +# modify it under the terms of the GNU Lesser General Public |
| 7 | +# License as published by the Free Software Foundation, version 2.1. |
| 8 | +# |
| 9 | +# This library is distributed in the hope that it will be useful, |
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | +# Lesser General Public License for more details. |
| 13 | +# |
| 14 | +# You should have received a copy of the GNU Lesser General Public |
| 15 | +# License along with this library; if not, write to the Free Software |
| 16 | +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | + |
2 | 18 |
|
3 | 19 | docker_tag="parallelssh/ssh-manylinux" |
| 20 | +docker_files=("ci/docker/manylinux/Dockerfile" "ci/docker/manylinux/Dockerfile.2014_x86_64") |
4 | 21 |
|
5 | 22 | rm -rf local build ssh/libssh.* ssh/*.so |
6 | 23 | python ci/appveyor/fix_version.py . |
7 | 24 |
|
8 | | -docker pull $docker_tag || echo |
9 | | -docker build --pull --cache-from $docker_tag ci/docker/manylinux -t $docker_tag |
10 | | -if [[ -z "$CIRCLE_PR_NUMBER" ]]; then docker push $docker_tag; fi |
11 | | -docker run --rm -v `pwd`:/io $docker_tag /io/ci/build-wheels.sh |
12 | | -ls wheelhouse/ |
| 25 | +if [[ $(uname -m) == "aarch64" ]]; then |
| 26 | + docker_tag=${docker_tag}:aarch64 |
| 27 | + docker_files=("ci/docker/manylinux/Dockerfile.aarch64") |
| 28 | +fi |
| 29 | + |
| 30 | +for docker_file in "${docker_files[@]}"; do |
| 31 | + if [[ ${docker_file} == "ci/docker/manylinux/Dockerfile_2014_x86_64" ]]; then |
| 32 | + docker_tag="${docker_tag}:2014_x86_64" |
| 33 | + fi |
| 34 | + docker pull $docker_tag || echo |
| 35 | + docker build --pull --cache-from $docker_tag ci/docker/manylinux -t $docker_tag -f ${docker_file} |
| 36 | + if [[ -z "${CIRCLE_PULL_REQUEST}" ]]; then docker push $docker_tag; fi |
| 37 | + docker run --rm -v "$(pwd)":/io $docker_tag /io/ci/build-wheels.sh |
| 38 | + ls wheelhouse/ |
| 39 | +done |
0 commit comments