Skip to content

Commit 6135e17

Browse files
author
goweft
committed
fix: ci.yml — match both 'statically linked' and 'static-pie linked'\n\nNewer Rust versions with PIE enabled produce 'static-pie linked' in\nfile(1) output instead of 'statically linked'. Both are fully static\nbinaries with no dynamic linker or glibc dependency.\n\nUse grep -qE 'static(ally|-pie) linked' to match both forms.
1 parent b878125 commit 6135e17

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ jobs:
6666
run: |
6767
BIN="target/${{ matrix.target }}/release/tenter"
6868
file "$BIN"
69-
# Use file(1) output — ldd is unreliable for cross-compiled aarch64
70-
# binaries running on an x86_64 host.
71-
file "$BIN" | grep -q "statically linked" || \
69+
# Match both "statically linked" (older Rust/file) and
70+
# "static-pie linked" (newer Rust with PIE enabled).
71+
# Both are fully static — no dynamic linker, no glibc dependency.
72+
file "$BIN" | grep -qE "static(ally|-pie) linked" || \
7273
{ echo "ERROR: binary is not statically linked"; exit 1; }
7374
7475
- name: Upload binary artifact

0 commit comments

Comments
 (0)