Skip to content

Commit 5f52cb3

Browse files
committed
ci: keep .dep-v0 in auditable release binaries
Release profile strip = symbols can run llvm-objcopy --strip-all after link, which removes cargo-auditable’s non-allocated .dep-v0 section. Override strip to debuginfo for the release-binaries matrix so shipped archives retain the embedded dependency list for cargo audit bin.
1 parent eb15ab5 commit 5f52cb3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/release-binaries.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ jobs:
9999
with:
100100
101101
- name: Build release binaries
102+
env:
103+
# [profile.release] strip = true maps to -C strip=symbols, which runs
104+
# llvm-objcopy --strip-all and drops cargo-auditable's .dep-v0 section.
105+
CARGO_PROFILE_RELEASE_STRIP: debuginfo
102106
run: cargo auditable build --release --locked --bins --target ${{ matrix.target }}
103107
- name: Package
104108
id: package

0 commit comments

Comments
 (0)