From f6bd5cc07903750d381b05240969dd0a9f1e2dbc Mon Sep 17 00:00:00 2001 From: dzu Date: Sun, 15 Feb 2026 06:45:00 +0000 Subject: [PATCH 1/2] fix: cargo args for release build --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index aba54fd..1bada03 100755 --- a/build.sh +++ b/build.sh @@ -45,7 +45,10 @@ ARGS='--target x86_64-unknown-linux-musl' RUSTFLAGS='' TARGET_DIR="./target/$(rustc --print host-tuple)" -if [[ "$OPT_RELEASE" != "true" ]] && [[ "$OPT_RELEASE" != "True" ]]; then +if [[ "$OPT_RELEASE" == "true" ]] || [[ "$OPT_RELEASE" == "True" ]]; then + TARGET_DIR="$TARGET_DIR/release" + ARGS="$ARGS --release" +else TARGET_DIR="$TARGET_DIR/debug" fi @@ -53,7 +56,6 @@ if [[ "$OPT_BUILD_STD" == "true" ]] || [[ "$OPT_BUILD_STD" == "True" ]]; then RUSTFLAGS="$RUSTFLAGS -Lunwind -L/lib/musl/lib -Lcrt -Lxz -llzma" TOOLCHAIN='+nightly' ARGS="-Z build-std $ARGS" - TARGET_DIR="$TARGET_DIR/release" fi RUSTFLAGS=$RUSTFLAGS cargo $TOOLCHAIN b $ARGS -v From 8f9cdc617606c6985a1c580d55520f50c0041349 Mon Sep 17 00:00:00 2001 From: dzu Date: Sun, 15 Feb 2026 06:50:00 +0000 Subject: [PATCH 2/2] [WARN]dev: add printenv for debug --- build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sh b/build.sh index 1bada03..2da096d 100755 --- a/build.sh +++ b/build.sh @@ -2,6 +2,8 @@ set -eu +printenv + # strip https:// from the urls if ! [[ "$SRC_REPOSITORY" =~ ^https:// ]]; then echo "Only https git urls are supported now. Provided source git url: $SRC_REPOSITORY"