feat: build all production targets on release
Imitate github workflows
This commit is contained in:
@@ -179,11 +179,23 @@ cargo_test () {
|
|||||||
ask_continue
|
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
|
# Full flow to create a new release
|
||||||
release_flow() {
|
release_flow() {
|
||||||
check_git
|
check_git
|
||||||
get_git_remote_url
|
get_git_remote_url
|
||||||
cargo_test
|
cargo_test
|
||||||
|
cargo_build
|
||||||
cd "${CWD}" || error_close "Can't find ${CWD}"
|
cd "${CWD}" || error_close "Can't find ${CWD}"
|
||||||
check_tag
|
check_tag
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user