Skip to content

Commit

Permalink
Travis: Build several android architectures. (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyar authored Apr 17, 2020
1 parent 540b633 commit 2f84184
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
21 changes: 16 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,21 @@ matrix:
- TARGET=aarch64-apple-ios
- IOS=1
# Android
# Disabling until we have better proto support. See https://github.com/IronCoreLabs/ironoxide/pull/27
# - name: Android x64
# os: linux
# env:
# - TARGET=aarch64-linux-android
- name: Android arm64
os: linux
env:
- TARGET=aarch64-linux-android
- name: Android arm32
os: linux
env:
- TARGET=armv7-linux-androideabi
- name: Android for the emulator
os: linux
env:
- TARGET=i686-linux-android
- name: Android x86_64
os: linux
env:
- TARGET=x86_64-linux-android
script:
- "./.travis_scripts/cross-test.sh"
6 changes: 3 additions & 3 deletions .travis_scripts/cross-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ set -x

# If no special target provided, use default cargo arch for building and run all unit tests
if [ -z "$TARGET" ]; then
IRONCORE_ENV=dev cargo t --features "blocking beta" --verbose
IRONCORE_ENV=dev cargo test --features "blocking beta" --verbose
cargo fmt -- --check
# Cross doesn't have support for iOS builds, so use cargo to add the target and compile for it
elif [ "$IOS" = 1 ]; then
rustup target add "$TARGET"
cargo build --features "blocking beta" --target "$TARGET"
# For everything else, use cross to compile for the specified target
else
cross build --features "blocking beta" --target "$TARGET"
fi
cross build --no-default-features --features "blocking beta tls-vendored-openssl" --target "$TARGET"
fi

0 comments on commit 2f84184

Please sign in to comment.