Skip to content

Commit

Permalink
fix: Disable object file stripping in cargo-deb
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Mar 7, 2024
1 parent df697ca commit e73fa97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion dist/build-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down
12 changes: 9 additions & 3 deletions src/build-crates-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit e73fa97

Please sign in to comment.