mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
[macOS] Implement new directories hierarchy (#8741)
This commit is contained in:
committed by
GitHub
parent
5d40b1e213
commit
8d6a01b370
23
images/macos/scripts/build/rust.sh
Normal file
23
images/macos/scripts/build/rust.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
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
|
||||
|
||||
if is_BigSur || is_Monterey; then
|
||||
cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated
|
||||
fi
|
||||
|
||||
echo Cleanup Cargo registry cached data...
|
||||
rm -rf $CARGO_HOME/registry/*
|
||||
|
||||
invoke_tests "Rust"
|
||||
Reference in New Issue
Block a user