From 460b1374344445e879721614d14a1eecc30d4cd2 Mon Sep 17 00:00:00 2001 From: Packet Please Date: Thu, 7 Nov 2024 01:54:22 +0100 Subject: [PATCH] build: save ramdisk space on workers - move output files instead of copying them - split build into two separately uploaded phases --- build/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/build.sh b/build/build.sh index 280ab02..f266012 100755 --- a/build/build.sh +++ b/build/build.sh @@ -249,7 +249,7 @@ EOF |& tee "bin/targets/$target/faillogs/$p.log" >&2 # if build resulted in image files, we can delete the log - cnt="$(find "bin/targets/$target" -name '*.bin' -or -name '*.img' -or -name '*.gz' | wc -l)" + cnt="$(find "bin/targets/$target" -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name '*.zst' -or -name '*.xz' | wc -l)" if [ "$cnt" -gt 0 ] ; then rm -v "bin/targets/$target/faillogs/$p.log" fi @@ -258,6 +258,7 @@ EOF |& tee "$destdir/build.log" >&2 -find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name 'profiles.json' -or -name 'faillogs' \) -exec cp -avx '{}' "$destdir/" \; +find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name '*.zst' -or -name '*.xz' -or -name 'profiles.json' \) -exec mv -v '{}' "$destdir/" \; +mv "$ibdir/bin/targets/$target/faillogs" "$destdir/" echo "Done."