summaryrefslogtreecommitdiff
path: root/ci/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/install.sh')
-rw-r--r--ci/install.sh49
1 files changed, 0 insertions, 49 deletions
diff --git a/ci/install.sh b/ci/install.sh
deleted file mode 100644
index bcb7c110..00000000
--- a/ci/install.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-set -ex
-
-main() {
- local target=
- if [ $CIRRUS_OS = linux ]; then
- target=x86_64-unknown-linux-musl
- else
- target=x86_64-apple-darwin
- fi
-
- # Builds for iOS are done on OSX, but require the specific target to be
- # installed.
- IFS=';' read -ra TARGET_ARRAY <<< "$TARGET"
- for t in "${TARGET_ARRAY[@]}"; do
- case $t 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
- done
-
- # This fetches latest stable release
- local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
- | cut -d/ -f3 \
- | grep -E '^v[0.1.0-9.]+$' \
- | sort --version-sort \
- | tail -n1)
- curl -LSfs https://japaric.github.io/trust/install.sh | \
- sh -s -- \
- --force \
- --git japaric/cross \
- --tag $tag \
- --target $target
-}
-
-main