Harden ccache and zip handling

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-25 00:43:38 +00:00
parent 9e220a05c5
commit 324e8d6601
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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