rust/setup-toolchain.sh

14 lines
354 B
Bash
Raw Normal View History

#!/bin/bash
# Set up the appropriate rustc toolchain
2019-10-14 19:51:41 +02:00
set -e
cd "$(dirname "$0")"
if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
fi
2019-10-14 05:25:05 +02:00
rustup-toolchain-install-master -f -n master
rustup override set master