]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
actions: fix cache-guix job [2]
authortobtoht <tob@featherwallet.org>
Wed, 31 May 2023 00:41:56 +0000 (02:41 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 31 May 2023 00:41:56 +0000 (02:41 +0200)
contrib/guix/guix-build

index 518379e613b75b8ede736d84e60284a5e171fc67..b7707bc9cc8bc1179c1e8fb0dec722bf7a8c86b0 100755 (executable)
@@ -121,28 +121,6 @@ else
     mkdir -p "$DISTSRC_BASE"
 fi
 
-################
-# VERSION_BASE should have enough space
-################
-
-avail_KiB="$(df -Pk "$VERSION_BASE" | sed 1d | tr -s ' ' | cut -d' ' -f4)"
-total_required_KiB=0
-for host in $HOSTS; do
-    case "$host" in
-        *darwin*) required_KiB=440000 ;;
-        *mingw*)  required_KiB=7600000 ;;
-        *)        required_KiB=6400000 ;;
-    esac
-    total_required_KiB=$((total_required_KiB+required_KiB))
-done
-
-if (( total_required_KiB > avail_KiB )); then
-    total_required_GiB=$((total_required_KiB / 1048576))
-    avail_GiB=$((avail_KiB / 1048576))
-    echo "Performing a Feather Wallet Guix build for the selected HOSTS requires ${total_required_GiB} GiB, however, only ${avail_GiB} GiB is available. Please free up some disk space before performing the build."
-    exit 1
-fi
-
 ################
 # Check that we can connect to the guix-daemon
 ################
@@ -356,6 +334,10 @@ EOF
                                  ${SUBSTITUTE_URLS:+--substitute-urls="$SUBSTITUTE_URLS"} \
                                  -- env HOST="$HOST"
 
+        if [[ -v DRY_RUN ]]; then
+            echo "Dry run, exiting.."
+            exit 0
+        fi
 
         # Run the build script 'contrib/guix/libexec/build.sh' in the build
         # container specified by 'contrib/guix/manifest.scm'.