From e73fa97766a261b5f1f96a78bf5e4c0dcca50ca8 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Thu, 7 Mar 2024 09:47:34 +0100 Subject: [PATCH] fix: Disable object file stripping in cargo-deb --- dist/build-crates-debian-main.js | 5 ++++- src/build-crates-debian.ts | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dist/build-crates-debian-main.js b/dist/build-crates-debian-main.js index 1a3d0d4..a27e7e9 100644 --- a/dist/build-crates-debian-main.js +++ b/dist/build-crates-debian-main.js @@ -128437,7 +128437,10 @@ async function main(input) { const packages = await packagesDebian(repo); lib_core.info(`Building ${packages.map(p => p.name).join(", ")}`); for (const package_ of packages) { - sh(`cargo deb --no-build --target ${input.target} --package ${package_.name} --deb-version ${input.version}`, { + sh(`cargo deb --no-build --no-strip \ + --target ${input.target} \ + --package ${package_.name} \ + --deb-version ${input.version}`, { cwd: repo, }); } diff --git a/src/build-crates-debian.ts b/src/build-crates-debian.ts index cd11fdc..f39d4d0 100644 --- a/src/build-crates-debian.ts +++ b/src/build-crates-debian.ts @@ -53,9 +53,15 @@ export async function main(input: Input) { core.info(`Building ${packages.map(p => p.name).join(", ")}`); for (const package_ of packages) { - sh(`cargo deb --no-build --target ${input.target} --package ${package_.name} --deb-version ${input.version}`, { - cwd: repo, - }); + sh( + `cargo deb --no-build --no-strip \ + --target ${input.target} \ + --package ${package_.name} \ + --deb-version ${input.version}`, + { + cwd: repo, + }, + ); } const output = `${repo}-${input.version}-${input.target}-debian`;