From 1f2c4b51c0bc8dc0a12203fc449bdff9e58eafec Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Wed, 27 Oct 2021 10:52:08 +0200 Subject: [PATCH] Show environment before building (#389) * Show environment before building * Code review fixes --- scripts/gh-build-crate.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/gh-build-crate.sh b/scripts/gh-build-crate.sh index 9b1a1efb..5ef88cab 100755 --- a/scripts/gh-build-crate.sh +++ b/scripts/gh-build-crate.sh @@ -135,24 +135,26 @@ for file in $CHANGES; do echo DEPLOYING CRATE $milestone if $is_binary; then echo SKIPPING BUILD for BINARY crate, FETCHING only - build_flag="" - else - build_flag="--build" + elif $is_system; then + echo SKIPPING BUILD for SYSTEM crate, FETCHING only fi - alr get -d $build_flag -n $milestone + alr -d -n get $milestone if $is_system; then echo DETECTING INSTALLED PACKAGE via crate $milestone - alr show -d --external-detect $milestone + alr -d show --external-detect $milestone elif $is_binary; then echo FETCHED BINARY crate OK else + echo FETCHED SOURCE crate OK cd ${crate}_${version_noextras}_* echo BUILD ENVIRONMENT alr printenv + echo BUILDING CRATE + alr -d -n build echo LISTING EXECUTABLES of crate $milestone - alr run -d --list + alr -d run --list cd .. fi