Try removing debuginfo for ci builds (#5549)

* Try removing debuginfo for ci builds

* oops, wrong inherits

* extra flag

* nextest doesn't support --profile in the same way

* try to allow for a ci-specific target

* Oops, run more tests
This commit is contained in:
JT
2022-05-16 16:02:11 +12:00
committed by GitHub
parent d90b25c633
commit c6383874e9
3 changed files with 33 additions and 12 deletions

View File

@ -246,9 +246,12 @@ pub fn root() -> PathBuf {
}
pub fn binaries() -> PathBuf {
let mut build_type = "debug";
let mut build_type = "debug".to_string();
if !cfg!(debug_assertions) {
build_type = "release"
build_type = "release".to_string()
}
if let Ok(target) = std::env::var("NUSHELL_CARGO_TARGET") {
build_type = target;
}
std::env::var("CARGO_TARGET_DIR")