From 2b60bda5b7443442e84131355701b590df78387d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 00:31:35 +0000 Subject: [PATCH] Guard shared lib packaging Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d2879d4e2..bea86a9c4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -78,10 +78,17 @@ jobs: # Add shared libraries needed for runtime (from build/bin and build/libs) if [ -d ../libs ]; then - find ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \ - while IFS= read -r -d '' lib; do - $ZIP_CMD "$lib" - done + lib_count="$(find ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) | wc -l)" + if [ "$lib_count" -gt 0 ]; then + find ../libs -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) -print0 | \ + while IFS= read -r -d '' lib; do + $ZIP_CMD "$lib" + done + else + echo "No shared libraries found in build/libs" + fi + else + echo "No build/libs directory found; skipping shared library packaging" fi # Verify zip file was created and contains files