From 324e8d66015fab8370287b0d06a9d0ff3190ef89 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:43:38 +0000 Subject: [PATCH] Harden ccache and zip handling Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/build.yaml | 1 + .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c4fe5a824..316464544 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,7 @@ jobs: - name: Ensure ccache installed run: | if ! command -v ccache >/dev/null 2>&1; then + echo "ccache not found in container; installing." apt-get update -qq DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ccache fi diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c007792e1..32e840d4b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -74,7 +74,7 @@ jobs: zip_add_unique() { local target_name target_name="$(basename "$1")" - if unzip -Z1 eqemu-server-linux-x64.zip | grep -qx "$target_name"; then + if [ -f eqemu-server-linux-x64.zip ] && unzip -Z1 eqemu-server-linux-x64.zip | grep -qx "$target_name"; then echo "Skipping duplicate library: $target_name" return 0 fi