Skip to content

Commit a68fb5c

Browse files
authored
Merge pull request #96 from ClickHouse/fix-ldd-check
Fix ldd check for static binaries
2 parents 88bd512 + fa6ebe6 commit a68fb5c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- "v*"
@@ -57,7 +58,9 @@ jobs:
5758
file "$binary"
5859
file "$binary" | grep -qE "statically linked|static-pie linked"
5960
echo "--- ldd output ---"
60-
! ldd "$binary" 2>&1 || ldd "$binary" 2>&1 | grep -q "not a dynamic executable"
61+
ldd_output=$(ldd "$binary" 2>&1 || true)
62+
echo "$ldd_output"
63+
echo "$ldd_output" | grep -qE "not a dynamic executable|statically linked"
6164
echo "Static linking verified."
6265
6366
- name: Rename binary

0 commit comments

Comments
 (0)