Files
microrust/ci/install.sh
Michael Droogleever 4be31b3ab7 ci fix for master
2018-07-29 20:18:39 +02:00

33 lines
796 B
Bash

set -euxo pipefail
main() {
if [ "$(mdbook -V)" != "mdbook v0.1.8" ]; then
curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- \
--force \
--git rust-lang-nursery/mdBook \
--tag v0.1.8 \
--target x86_64-unknown-linux-musl \
|| true
fi
if [ "$(mdbook -V)" != "mdbook v0.1.8" ]; then
cargo install --target x86_64-unknown-linux-gnu --version 0.1.8 mdbook \
|| true
fi
if [ "$(mdbook -V)" != "mdbook v0.1.8" ]; then
cargo install --force --target x86_64-unknown-linux-gnu --version 0.1.8 mdbook
fi
rustup target add thumbv6m-none-eabi
pip install linkchecker --user
# sanity check that a linker is present
which arm-none-eabi-ld
}
main