Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Ne10/circle.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
167 lines (149 sloc)
4.07 KB
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
all_jobs: &all_jobs | |
jobs: | |
- ios-armv7-release | |
- ios-armv7-debug | |
- ios-aarch64-release | |
- ios-aarch64-debug | |
- android-armv7-release | |
- android-armv7-debug | |
- android-aarch64-release | |
- android-aarch64-debug | |
- linux-armv7-release | |
- linux-armv7-debug | |
- linux-aarch64-release | |
- linux-aarch64-debug | |
build_steps: &build_steps | |
steps: | |
- run: | |
name: Setup | |
command: | | |
if [ "${PLATFORM}" == "ios" ]; then | |
mkdir -p ~/cmake | |
curl -L https://cmake.org/files/v3.10/cmake-3.10.3-Darwin-x86_64.tar.gz | \ | |
tar -xz -C ~/cmake --strip-components 1 | |
CMAKE_BIN_DIR="${HOME}/cmake/CMake.app/Contents/bin" | |
LOCAL_BIN_DIR="/usr/local/bin" | |
ln -s ${CMAKE_BIN_DIR}/cmake ${LOCAL_BIN_DIR}/cmake | |
ln -s ${CMAKE_BIN_DIR}/cpack ${LOCAL_BIN_DIR}/cpack | |
ln -s ${CMAKE_BIN_DIR}/ctest ${LOCAL_BIN_DIR}/ctest | |
elif [ "${PLATFORM}" == "android" ]; then | |
NDK_VERSION="r16b" | |
sudo apt-get update | |
sudo apt-get install cmake | |
cd ${HOME} | |
curl -L https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -o ndk.zip | |
unzip ndk.zip | |
mv android-ndk-${NDK_VERSION} android-ndk | |
else | |
sudo apt-get update | |
sudo apt-get install cmake | |
if [ "${ARCH}" == "armv7" ]; then | |
sudo apt-get install g++-arm-linux-gnueabihf | |
else | |
# gcc7 aarch64 fails due to this bug: | |
# https://bugs.launchpad.net/gcc-linaro/+bug/1759369 | |
# sudo apt-get install g++-aarch64-linux-gnu | |
sudo apt-get install g++-8-aarch64-linux-gnu | |
sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-8 1 --slave /usr/bin/aarch64-linux-gnu-g++ aarch64-linux-gnu-g++ /usr/bin/aarch64-linux-gnu-g++-8 | |
fi | |
fi | |
- checkout | |
- run: | |
name: Build | |
command: | | |
./circle/build_${PLATFORM}.sh | |
environment: | |
TERM: "xterm" # color output | |
mac_build: &mac_build | |
macos: | |
xcode: "9.2.0" | |
<<: *build_steps | |
linux_build: &linux_build | |
docker: | |
- image: circleci/buildpack-deps:bionic | |
<<: *build_steps | |
# TODO(tom): release/debug variant | |
# also clang variant for NDK | |
# enable warnings as errors | |
version: 2 | |
jobs: | |
ios-armv7-release: | |
<<: *mac_build | |
environment: | |
- PLATFORM: "ios" | |
- ARCH: "armv7" | |
ios-armv7-debug: | |
<<: *mac_build | |
environment: | |
- PLATFORM: "ios" | |
- ARCH: "armv7" | |
- DEBUG: "1" | |
ios-aarch64-release: | |
<<: *mac_build | |
environment: | |
- PLATFORM: "ios" | |
- ARCH: "aarch64" | |
ios-aarch64-debug: | |
<<: *mac_build | |
environment: | |
- PLATFORM: "ios" | |
- ARCH: "aarch64" | |
- DEBUG: "1" | |
android-armv7-release: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "android" | |
- ARCH: "armv7" | |
android-armv7-debug: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "android" | |
- ARCH: "armv7" | |
- DEBUG: "1" | |
android-aarch64-release: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "android" | |
- ARCH: "aarch64" | |
android-aarch64-debug: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "android" | |
- ARCH: "aarch64" | |
- DEBUG: "1" | |
linux-armv7-release: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "linux" | |
- ARCH: "armv7" | |
linux-armv7-debug: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "linux" | |
- ARCH: "armv7" | |
- DEBUG: "1" | |
linux-aarch64-release: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "linux" | |
- ARCH: "aarch64" | |
linux-aarch64-debug: | |
<<: *linux_build | |
environment: | |
- PLATFORM: "linux" | |
- ARCH: "aarch64" | |
- DEBUG: "1" | |
workflows: | |
version: 2 | |
continous: | |
<<: *all_jobs | |
nightly: | |
<<: *all_jobs | |
triggers: | |
- schedule: | |
cron: "0 8 * * *" | |
filters: | |
branches: | |
only: | |
- master | |
- circleci | |