From 8fee2502dbcedf4b003e16ba33d4bfda0ef4b3bc Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Thu, 18 Sep 2025 13:49:54 +0200 Subject: [PATCH] packages: save more space while building packages on the CI --- scripts/packaging/build-deb-local.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/packaging/build-deb-local.sh b/scripts/packaging/build-deb-local.sh index 9fe27f8c3d14..a5b9bacca69a 100755 --- a/scripts/packaging/build-deb-local.sh +++ b/scripts/packaging/build-deb-local.sh @@ -19,10 +19,15 @@ packages() { EXECUTABLES=$(cat script-inputs/*-executables) for ex in $EXECUTABLES; do if [ -f "$ex" ]; then - cp -f "$ex" scripts/packaging/octez/binaries/ + mv -f "$ex" scripts/packaging/octez/binaries/ fi done + # on the CI cleanup everything before building the packages + if [ -z "${CI:-}" ]; then + make clean + fi + # Build the debian packages cd scripts/packaging/octez/ DEB_BUILD_OPTIONS=parallel=6 DEB_BUILD_OPTIONS=noautodbgsym \ -- GitLab