From 93ec464d02c4d4b0934a0a8b8fe24b2152f6cc87 Mon Sep 17 00:00:00 2001 From: Enginex0 Date: Wed, 11 Mar 2026 12:51:02 +0100 Subject: [PATCH] ci(build): use mv instead of cp to avoid duplicate artifacts cp left the original zip alongside the renamed copy, so the glob matched both, doubling artifact size. mv removes the original. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e7ade9..5a4f219 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,11 +89,11 @@ jobs: exit 1 fi - cp "$RELEASE_FILE" "out/TEESimulator-${VER}-Release.zip" - cp "$DEBUG_FILE" "out/TEESimulator-${VER}-Debug.zip" + mv "$RELEASE_FILE" "out/TEESimulator-${VER}-Release.zip" + mv "$DEBUG_FILE" "out/TEESimulator-${VER}-Debug.zip" - echo "Release: $(basename "$RELEASE_FILE") -> TEESimulator-${VER}-Release.zip ($(du -h "$RELEASE_FILE" | cut -f1))" - echo "Debug: $(basename "$DEBUG_FILE") -> TEESimulator-${VER}-Debug.zip ($(du -h "$DEBUG_FILE" | cut -f1))" + echo "Release: TEESimulator-${VER}-Release.zip ($(du -h "out/TEESimulator-${VER}-Release.zip" | cut -f1))" + echo "Debug: TEESimulator-${VER}-Debug.zip ($(du -h "out/TEESimulator-${VER}-Debug.zip" | cut -f1))" env: VER: ${{ steps.ver.outputs.version }}