From 9f27f56d2a1519db26273d9f75f5209c4a331ec1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:45:55 +0000 Subject: [PATCH] Unify zip duplicate handling Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/build.yaml | 2 +- .github/workflows/release.yaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 617fa6ce4..b675d8d6f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -30,7 +30,7 @@ jobs: echo "ccache not found in container; installing." apt-get update -qq DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ccache - command -v ccache >/dev/null 2>&1 + command -v ccache >/dev/null 2>&1 || { echo "ccache install failed"; exit 1; } fi - name: Mark workspace safe diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 485d8199e..4bf1d75f5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -83,11 +83,9 @@ jobs: } # Add all executable files (excluding tests) - ZIP_CONTENTS="$(unzip -Z1 eqemu-server-linux-x64.zip 2>/dev/null || true)" for f in *; do if [ -f "$f" ] && [ -x "$f" ] && [ "$f" != "tests" ]; then - zip_add "$f" - ZIP_CONTENTS="${ZIP_CONTENTS}${f}"$'\n' + zip_add_unique "$f" fi done