diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 050da6c..5949dfc 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -61,11 +61,20 @@ jobs: restore-keys: ${{ runner.os }}-node- - name: Build (Native) - run: mvn package -Pnative -B -DskipTests -Dquarkus.native.native-image-xmx=4g -Dquarkus.native.binary-type=STATIC + run: mvn package -Pnative -B -DskipTests -Dquarkus.native.native-image-xmx=4g -Dquarkus.native.binary-type=STATIC -Dquarkus.native.container-build=true - 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 - name: Stage binary for Docker run: |