heapless/ci/install.sh
2018-03-01 19:35:55 +01:00

21 lines
568 B
Bash

set -euxo pipefail
main() {
# install latest Xargo
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/xargo \
| cut -d/ -f3 \
| grep -E '^v[0-9.]+$' \
| sort --version-sort \
| tail -n1)
curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- \
--force \
--git japaric/xargo \
--tag $tag
rustup component list | grep 'rust-src.*installed' || \
rustup component add rust-src
}
main