Skip to content

Commit

Permalink
chore: create_release.sh updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Jun 3, 2023
1 parent 4fa841e commit 7dec5f1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,37 @@ cargo_test () {
# This will download GB's of docker images
cargo_build () {
cargo install cross
echo -e "${YELLOW}cargo build --release${RESET}"
cargo build --release
cargo_clean
echo -e "${YELLOW}cross build --target x86_64-unknown-linux-musl --release${RESET}"
cross build --target x86_64-unknown-linux-musl --release
ask_continue
cargo_clean
echo -e "${YELLOW}cross build --target aarch64-unknown-linux-musl --release${RESET}"
cross build --target aarch64-unknown-linux-musl --release
ask_continue
cargo_clean
echo -e "${YELLOW}cross build --target arm-unknown-linux-musleabihf --release${RESET}"
cross build --target arm-unknown-linux-musleabihf --release
ask_continue
cargo_clean
echo -e "${YELLOW}cross build --target x86_64-pc-windows-gnu --release${RESET}"
cross build --target x86_64-pc-windows-gnu --release
ask_continue
cargo_clean
}


# $1 text to colourise
release_continue () {
echo -e "\n${PURPLE}$1${RESET}"
ask_continue
}

# Clean/remove builds, due to issue with cross-rs
cargo_clean() {
echo -e "${YELLOW}cargo clean${RESET}"
cargo clean
}
# Check repository for typos
check_typos () {
echo -e "\n${PURPLE}check typos${RESET}"
Expand Down

0 comments on commit 7dec5f1

Please sign in to comment.