mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[ubuntu] Refactor bash functions (#9055)
This commit is contained in:
committed by
GitHub
parent
d16bc5f120
commit
503ae89818
@@ -19,7 +19,7 @@ source $CARGO_HOME/env
|
||||
# Install common tools
|
||||
rustup component add rustfmt clippy
|
||||
|
||||
if isUbuntu22; then
|
||||
if is_ubuntu22; then
|
||||
cargo install bindgen-cli cbindgen cargo-audit cargo-outdated
|
||||
else
|
||||
cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated
|
||||
@@ -29,6 +29,6 @@ fi
|
||||
rm -rf ${CARGO_HOME}/registry/*
|
||||
|
||||
# Update /etc/environemnt
|
||||
prependEtcEnvironmentPath '$HOME/.cargo/bin'
|
||||
prepend_etc_environment_path '$HOME/.cargo/bin'
|
||||
|
||||
invoke_tests "Tools" "Rust"
|
||||
|
||||
Reference in New Issue
Block a user