Skip to content

Commit

Permalink
ci(rust): use the short version of show_tool_versions_rust() outside …
Browse files Browse the repository at this point in the history
…of ci
  • Loading branch information
vpayno committed Aug 30, 2023
1 parent e55068b commit 2a20d52
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/citools/includes/wrapper-library
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,38 @@ show_tool_versions_rust() {
printf "Rust version:\n"
printf "\n"
rustc --version | paste /dev/null -
printf "\n"
# md_code_tag
printf "\n"

if [[ -z ${GITHUB_ACTIONS} ]]; then
return
fi

# md_code_tag text
printf "Installed cargo crates:\n"
printf "\n"
cargo install --list | paste /dev/null -
printf "\n"
# md_code_tag
printf "\n"

# md_code_tag text
rustup --version
printf "\n"
# md_code_tag
printf "\n"

# md_code_tag text
printf "Installed rustup components:\n"
printf "\n"
rustup component list | grep '(installed)' | paste /dev/null -
printf "\n"
# md_code_tag
printf "\n"

# md_code_tag text
printf "Environment variables:\n"
printf "\n"
printf "%s=%s\n" "PATH" "${PATH}"
printf "\n"
printf "%s=%s\n" "CARGO_REGISTRIES_CRATES_IO_PROTOCOL" "${CARGO_REGISTRIES_CRATES_IO_PROTOCOL}" "RUSTC_WRAPPER" "${RUSTC_WRAPPER}"
printf "\n"
# md_code_tag
printf "\n"
} # show_tool_versions_rust()

0 comments on commit 2a20d52

Please sign in to comment.