-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Linux AArch64 wheel build support (#154)
Co-authored-by: Panos <[email protected]>
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM quay.io/pypa/manylinux2014_aarch64 | ||
|
||
ENV OPENSSL openssl-1.1.1g | ||
ENV SYSTEM_LIBSSH2 1 | ||
ENV LIBSSH2_VERSION 1.9.0 | ||
|
||
RUN yum install zlib-devel -y | ||
|
||
ADD libssh2-${LIBSSH2_VERSION}.tar.gz libssh2-${LIBSSH2_VERSION}.tar.gz | ||
ADD https://www.openssl.org/source/${OPENSSL}.tar.gz ${OPENSSL}.tar.gz | ||
|
||
RUN tar -xzf ${OPENSSL}.tar.gz | ||
# Openssl | ||
RUN cd ${OPENSSL} && \ | ||
./config --prefix=/usr --openssldir=/usr/openssl threads shared && \ | ||
make -j4 && make install | ||
|
||
# Libssh2 | ||
RUN mkdir -p build_libssh2 && cd build_libssh2 && \ | ||
cmake ../libssh2-${LIBSSH2_VERSION}.tar.gz/libssh2-libssh2-${LIBSSH2_VERSION} \ | ||
-DBUILD_SHARED_LIBS=ON -DENABLE_ZLIB_COMPRESSION=ON \ | ||
-DENABLE_CRYPT_NONE=ON -DENABLE_MAC_NONE=ON -DCMAKE_INSTALL_PREFIX=/usr && \ | ||
cmake --build . --config Release --target install | ||
|
||
RUN rm -rf ${OPENSSL}* build_libssh2 libssh2.tar.gz | ||
|
||
VOLUME /var/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/bin/bash -xe | ||
|
||
docker_tag="parallelssh/ssh2-manylinux" | ||
docker_file="ci/docker/manylinux/Dockerfile" | ||
|
||
rm -rf build ssh2/libssh2.* | ||
python ci/appveyor/fix_version.py . | ||
|
||
if [[ `uname -m` == "aarch64" ]]; then | ||
docker_tag=${docker_tag}-aarch64 | ||
docker_file=${docker_file}.aarch64 | ||
fi | ||
|
||
docker pull $docker_tag || echo | ||
docker build --cache-from $docker_tag ci/docker/manylinux -t $docker_tag | ||
docker build --cache-from $docker_tag ci/docker/manylinux -t $docker_tag -f ${docker_file} | ||
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then docker push $docker_tag; fi | ||
docker run -e TRAVIS_TAG="$TRAVIS_TAG" --rm -v `pwd`:/io $docker_tag /io/ci/travis/build-wheels.sh | ||
ls wheelhouse/ |