mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
* [macOS] Fail Pester tests on error * return it back * added new tests * added new tests for Macos part2 * fixed nitpicks * vsmac changes * remove toolcache fron high sierra
22 lines
538 B
Bash
22 lines
538 B
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/utils.sh
|
|
source ~/utils/invoke-tests.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
|
|
cargo install bindgen cbindgen cargo-audit cargo-outdated
|
|
|
|
echo Cleanup Cargo registry cached data...
|
|
rm -rf $CARGO_HOME/registry/*
|
|
|
|
invoke_tests "Rust"
|