mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 14:48:20 +00:00
Harden ccache and zip handling
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
|||||||
- name: Ensure ccache installed
|
- name: Ensure ccache installed
|
||||||
run: |
|
run: |
|
||||||
if ! command -v ccache >/dev/null 2>&1; then
|
if ! command -v ccache >/dev/null 2>&1; then
|
||||||
|
echo "ccache not found in container; installing."
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ccache
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ccache
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
zip_add_unique() {
|
zip_add_unique() {
|
||||||
local target_name
|
local target_name
|
||||||
target_name="$(basename "$1")"
|
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"
|
echo "Skipping duplicate library: $target_name"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user