Files
EventHubBack/docker/scripts/verify-native-libs.sh
T
aleksey e8464b3a8b
CI / test (push) Successful in 7m42s
Add shared Erlang builder/runtime base images from registry.
Publish erlang-builder and erlang-runtime as :latest, use them in prod and API test builds, auto-collect NIF libs, and sync CI to pull/push bases before eventhub build.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 12:25:42 +03:00

24 lines
571 B
Bash

#!/bin/sh
# Падает, если у .so из release есть unresolved ldd-зависимости.
# Usage: verify-native-libs.sh <release_dir>
set -eu
RELEASE="${1:?release_dir}"
failed=0
# shellcheck disable=SC2044
for so in $(find "${RELEASE}" -name '*.so' 2>/dev/null); do
if ldd "${so}" 2>/dev/null | grep -q 'not found'; then
echo "ERROR: missing libs for ${so}:"
ldd "${so}" 2>/dev/null | grep 'not found' || true
failed=1
fi
done
if [ "${failed}" -ne 0 ]; then
echo "verify-native-libs: FAILED"
exit 1
fi
echo "verify-native-libs: OK"