aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/preview.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
index 9ea33ca1..1d2fe432 100644
--- a/.github/workflows/preview.yml
+++ b/.github/workflows/preview.yml
@@ -190,8 +190,9 @@ jobs:
cp target/${{ matrix.target }}/release/herdr ${{ matrix.name }}
if [ "${{ runner.os }}" = "Linux" ]; then
file ${{ matrix.name }} > BUILD_INFO.txt
- ldd ${{ matrix.name }} 2>&1 | tee -a BUILD_INFO.txt
- grep -q "statically linked" BUILD_INFO.txt
+ ldd ${{ matrix.name }} > LDD_INFO.txt 2>&1 || true
+ cat LDD_INFO.txt >> BUILD_INFO.txt
+ grep -Eq "statically linked|not a dynamic executable" LDD_INFO.txt
if nm -u ${{ matrix.name }} 2>/dev/null | grep -E '(__cxa|GLIBCXX|CXXABI|_ZSt)'; then
echo "error: Linux artifact has unresolved C++ runtime symbols" >&2
exit 1