Print cross version after it's installed

This commit is contained in:
Dave Rolsky 2024-05-18 12:21:17 +08:00
parent 2297f8e434
commit ace37a7d90
No known key found for this signature in database

View File

@ -12,6 +12,7 @@ cd "$CROSS_DIR"
if [[ -n $VERSION ]] && ! [[ $VERSION =~ ^v ]]; then if [[ -n $VERSION ]] && ! [[ $VERSION =~ ^v ]]; then
cargo install cross --git https://github.com/cross-rs/cross --rev "$VERSION" cargo install cross --git https://github.com/cross-rs/cross --rev "$VERSION"
mv "$HOME/.cargo/bin/cross" . mv "$HOME/.cargo/bin/cross" .
CROSS_NO_WARNINGS=0 ./cross --version
exit 0 exit 0
fi fi
@ -26,3 +27,4 @@ curl --silent --location \
sh sh
# shellcheck disable=SC2086 # shellcheck disable=SC2086
./ubi --project cross-rs/cross --matching musl --in . $VERSION_ARGS ./ubi --project cross-rs/cross --matching musl --in . $VERSION_ARGS
CROSS_NO_WARNINGS=0 ./cross --version