-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: do arm64 builds natively on TravisCI
- Loading branch information
1 parent
1f845d0
commit 70f9f8b
Showing
4 changed files
with
105 additions
and
25 deletions.
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
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,43 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
MANYLINUX_PYTHON=cp38-cp38 | ||
export PATH="/opt/python/${MANYLINUX_PYTHON}/bin:$PATH" | ||
export DEFAULT_DOCKCROSS_IMAGE=dockcross/manylinux2014-aarch64 | ||
|
||
|
||
yum install -y openssl-devel zlib-devel libcurl-devel | ||
CMAKE_VERSION=3.18.3 | ||
cd /root | ||
curl -L -O https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz | ||
tar -xzf cmake-${CMAKE_VERSION}.tar.gz | ||
cd cmake-${CMAKE_VERSION} | ||
./bootstrap --system-curl --parallel=$(nproc) | ||
make -j$(nproc) | ||
make install | ||
cd .. | ||
|
||
cd /io | ||
|
||
|
||
ci_before_install() { | ||
/opt/python/${MANYLINUX_PYTHON}/bin/python scripts/ssl-check.py | ||
/opt/python/${MANYLINUX_PYTHON}/bin/pip install scikit-ci scikit-ci-addons scikit-build | ||
} | ||
|
||
ci_install() { | ||
/opt/python/${MANYLINUX_PYTHON}/bin/ci install | ||
} | ||
ci_test() { | ||
/opt/python/${MANYLINUX_PYTHON}/bin/ci test | ||
} | ||
ci_after_success() { | ||
/opt/python/${MANYLINUX_PYTHON}/bin/ci after_test | ||
} | ||
|
||
ci_before_install | ||
ci_install | ||
ci_test | ||
ci_after_success |