cargo-deb icon indicating copy to clipboard operation
cargo-deb copied to clipboard

Building package using debug profile

Open jszwedko opened this issue 3 years ago • 2 comments

Is it possible to change the profile that cargo deb uses from release? We build packages in CI as part of some correctness tests and would like to improve their build times by just using the debug build profile.

I attempted to export PROFILE=debug, but cargo deb still seems to build using release.

jszwedko avatar Jun 23 '21 18:06 jszwedko

It uses release profile only. There's a flag to skip building completely, but it will look for binaries in target/release anyway.

Maybe you can change opt-level of the release profile?

kornelski avatar Jun 23 '21 20:06 kornelski

Yeah, that's a reasonable work-around. Thanks for suggesting @kornelski

jszwedko avatar Jun 24 '21 20:06 jszwedko