From 7dec5f14a381d237c5e72fbf9551bcf398f93f3e Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sat, 3 Jun 2023 23:37:57 +0000 Subject: [PATCH] chore: create_release.sh updated --- create_release.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/create_release.sh b/create_release.sh index 7e20eca..5cd9edb 100755 --- a/create_release.sh +++ b/create_release.sh @@ -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}"