summaryrefslogtreecommitdiff
path: root/ci/install.sh
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-06-30 11:00:38 -0700
committerBryant Mairs <bryant@mai.rs>2017-07-03 12:48:59 -0700
commit880906423626243a3f777a4b7b2403df5ac65b14 (patch)
tree36e95e1d95ef79b11dd32e26983ad5a4c01fbec8 /ci/install.sh
parent1bd18d5830573f21ca196d818a796b90639cfab0 (diff)
downloadnix-880906423626243a3f777a4b7b2403df5ac65b14.zip
Add iOS as a Tier 3 platform
Diffstat (limited to 'ci/install.sh')
-rw-r--r--ci/install.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/ci/install.sh b/ci/install.sh
index 748ad9a9..80e18e47 100644
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -10,6 +10,26 @@ main() {
sort=gsort # for `sort --sort-version`, from brew's coreutils.
fi
+ # Builds for iOS are done on OSX, but require the specific target to be
+ # installed.
+ case $TARGET in
+ aarch64-apple-ios)
+ rustup target install aarch64-apple-ios
+ ;;
+ armv7-apple-ios)
+ rustup target install armv7-apple-ios
+ ;;
+ armv7s-apple-ios)
+ rustup target install armv7s-apple-ios
+ ;;
+ i386-apple-ios)
+ rustup target install i386-apple-ios
+ ;;
+ x86_64-apple-ios)
+ rustup target install x86_64-apple-ios
+ ;;
+ esac
+
# This fetches latest stable release
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
| cut -d/ -f3 \