From 1ad8e174737701be88696874ae91ec87a84f2c30 Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Fri, 14 Aug 2026 13:58:43 -0400 Subject: [PATCH] fix(ci): drop 'file' from verify step (not installed in maven base image) The 'file' package isn't installed in maven:3.9.6-eclipse-temurin-21, so 'file target/...-runner' returned 127 and failed the verify step. Use only 'ldd'; on a static binary ldd exits non-zero with 'not a dynamic executable', which we suppress with '|| echo'. --- .gitea/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 77c0878..d972e98 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -67,15 +67,9 @@ jobs: - name: Verify native binary run: | ls -la target/shot-crafter-calculator-1.0.0-runner - echo "--- file ---" - file target/shot-crafter-calculator-1.0.0-runner - echo "--- ldd ---" - if ldd target/shot-crafter-calculator-1.0.0-runner >/dev/null 2>&1; then - echo "WARNING: binary has dynamic dependencies:" - ldd target/shot-crafter-calculator-1.0.0-runner - else - echo "OK: binary is statically linked (no dynamic dependencies)." - fi + echo "" + echo "=== Library dependencies ===" + ldd target/shot-crafter-calculator-1.0.0-runner 2>&1 || echo "(not a dynamic executable -> static)" - name: Stage binary for Docker run: |