-
Notifications
You must be signed in to change notification settings - Fork 6
Testing both debug
and release
builds in CI
#23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
debug
and release
builds in CI
I am fine with adding one release test run ( |
What should we do with build-only jobs? I think it's fine to use debug builds for them. |
The build-only jobs are largely to test |
As discussed in RustCrypto/meta#23
Uh oh!
There was an error while loading. Please reload this page.
Note: some past discussion in RustCrypto/MACs#186
Several of our projects test
--release
builds in CI: https://github.com/search?q=org%3ARustCrypto+cargo+test+--release+language%3AYAML&type=code&l=YAMLMany of our projects currently test
release
builds exclusively. I think where we're not testingdebug
builds, we probably should, in order to test debug assertions. We can probably do things likecargo hack
and feature-by-feature testing indebug
builds. But I think we should still include something likecargo test --release --all-features
to testrelease
builds, possibly as its own job which can run in parallel.Debug versus release builds involve conditional compilation, so testing debug builds exclusively doesn't give you a full picture of what happens in a release build. Only testing the release build can do that, and IMO release builds are what actually matter. This is why I originally included testing
--release
builds in the CI boilerplate. In general we test many other combinations as we're attempting to produce high-assurance software, so testing bothdebug
andrelease
builds seems like standard practice to me.Some examples of other Rust cryptography projects which test
release
builds in CI:The text was updated successfully, but these errors were encountered: