e8464b3a8b
CI / test (push) Successful in 7m42s
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>
24 lines
571 B
Bash
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"
|