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>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user