Compare commits

...
Author SHA1 Message Date
dzu
8f9cdc6176 [WARN]dev: add printenv for debug
All checks were successful
Upload the container / build-and-upload (push) Successful in 10s
2026-02-15 06:50:00 +00:00
dzu
f6bd5cc079 fix: cargo args for release build 2026-02-15 06:45:00 +00:00

View file

@ -2,6 +2,8 @@
set -eu set -eu
printenv
# strip https:// from the urls # strip https:// from the urls
if ! [[ "$SRC_REPOSITORY" =~ ^https:// ]]; then if ! [[ "$SRC_REPOSITORY" =~ ^https:// ]]; then
echo "Only https git urls are supported now. Provided source git url: $SRC_REPOSITORY" echo "Only https git urls are supported now. Provided source git url: $SRC_REPOSITORY"
@ -45,7 +47,10 @@ ARGS='--target x86_64-unknown-linux-musl'
RUSTFLAGS='' RUSTFLAGS=''
TARGET_DIR="./target/$(rustc --print host-tuple)" 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" TARGET_DIR="$TARGET_DIR/debug"
fi fi
@ -53,7 +58,6 @@ if [[ "$OPT_BUILD_STD" == "true" ]] || [[ "$OPT_BUILD_STD" == "True" ]]; then
RUSTFLAGS="$RUSTFLAGS -Lunwind -L/lib/musl/lib -Lcrt -Lxz -llzma" RUSTFLAGS="$RUSTFLAGS -Lunwind -L/lib/musl/lib -Lcrt -Lxz -llzma"
TOOLCHAIN='+nightly' TOOLCHAIN='+nightly'
ARGS="-Z build-std $ARGS" ARGS="-Z build-std $ARGS"
TARGET_DIR="$TARGET_DIR/release"
fi fi
RUSTFLAGS=$RUSTFLAGS cargo $TOOLCHAIN b $ARGS -v RUSTFLAGS=$RUSTFLAGS cargo $TOOLCHAIN b $ARGS -v