From 44f8140eaec330abe5a94f3ddae9e8b223688aa8 Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:34:50 +0000 Subject: [PATCH] feat: build all production targets on release Imitate github workflows --- create_release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/create_release.sh b/create_release.sh index 50a90e9..349293e 100755 --- a/create_release.sh +++ b/create_release.sh @@ -179,11 +179,23 @@ cargo_test () { ask_continue } +# Build all releases that GitHub workflow would +# This will download GB's of docker images +cargo_build () { + cargo install cross + cargo build --release + cross build --target aarch64-unknown-linux-musl --release + cross build --target arm-unknown-linux-musleabihf --release + cross build --target x86_64-pc-windows-gnu --release + ask_continue +} + # Full flow to create a new release release_flow() { check_git get_git_remote_url cargo_test + cargo_build cd "${CWD}" || error_close "Can't find ${CWD}" check_tag