mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
25 lines
673 B
Bash
25 lines
673 B
Bash
#!/bin/bash -e -o pipefail
|
|
################################################################################
|
|
## File: install-rust.sh
|
|
## Desc: Install Rust
|
|
################################################################################
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
echo "Installing Rustup..."
|
|
brew_smart_install "rustup-init"
|
|
|
|
echo "Installing Rust language..."
|
|
rustup-init -y --no-modify-path --default-toolchain=stable --profile=minimal
|
|
|
|
echo "Initialize environment variables..."
|
|
CARGO_HOME=$HOME/.cargo
|
|
|
|
echo "Install common tools..."
|
|
rustup component add rustfmt clippy
|
|
|
|
echo "Cleanup Cargo registry cached data..."
|
|
rm -rf $CARGO_HOME/registry/*
|
|
|
|
invoke_tests "Rust"
|