Add cross-version parameter to specify cross version

This commit is contained in:
Dave Rolsky
2023-10-22 11:12:50 -05:00
parent ef5051e603
commit 883c7a0854
8 changed files with 80 additions and 32 deletions

View File

@@ -3,9 +3,16 @@ set -x
set -o pipefail
CROSS_DIR="$1"
VERSION="$2"
VERSION_ARGS=""
if [ -n "$VERSION" ]; then
VERSION_ARGS="--tag $VERSION"
fi
cd "$CROSS_DIR"
export TARGET=.
curl --silent --location \
https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh |
sh
./ubi --project cross-rs/cross --matching musl --in .
./ubi --project cross-rs/cross --matching musl --in . $VERSION_ARGS