mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Adjust feature flags enabled on CI (#809)
Enable feature `pkg-config` and `log_release_max_level_debug` for debug build and enable feature `static`, `trust-dns` and `log_release_max_level_debug` for release build. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9c6ab5991e
commit
45ce841342
1 changed files with 6 additions and 2 deletions
8
justfile
8
justfile
|
@ -62,9 +62,13 @@ cargo-no-default-features := if default-features == "false" { " --no-default-fea
|
|||
} else if (cargo-profile / ci-or-no) == "dev/ci" { " --no-default-features"
|
||||
} else { "" }
|
||||
|
||||
support-pkg-config := if target == target-host {
|
||||
if target-os != "windows" { "true" } else { "" }
|
||||
} else { "" }
|
||||
|
||||
cargo-features := trim_end_match(if override-features != "" { override-features
|
||||
} else if (cargo-profile / ci-or-no) == "dev/ci" { "rustls,fancy-with-backtrace,zstd-thin" + extra-features
|
||||
} else if (cargo-profile / ci-or-no) == "release/ci" { "rustls,fancy-no-backtrace,zstd-thin" + extra-features
|
||||
} else if (cargo-profile / ci-or-no) == "dev/ci" { "rustls,fancy-with-backtrace,zstd-thin,log_release_max_level_debug" + (if support-pkg-config != "" { ",pkg-config" } else { "" }) + extra-features
|
||||
} else if (cargo-profile / ci-or-no) == "release/ci" { "static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug" + extra-features
|
||||
} else { extra-features
|
||||
}, ",")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue