Skip to content

Commit 1ecb1d3

Browse files
sdairsclaude
andcommitted
Fix ldd check for static binaries
ldd exits with code 1 for static binaries, which fails the step. Capture output with || true and grep for the expected messages instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 75c7ca8 commit 1ecb1d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
binary="target/${{ matrix.target }}/release/clickhousectl"
5656
echo "--- file output ---"
5757
file "$binary"
58-
file "$binary" | grep -q "statically linked"
58+
file "$binary" | grep -qE "statically linked|static-pie linked"
5959
echo "--- ldd output ---"
6060
! ldd "$binary" 2>&1 || ldd "$binary" 2>&1 | grep -q "not a dynamic executable"
6161
echo "Static linking verified."

0 commit comments

Comments
 (0)