From 1099b3cf6fc7fe57061f4821531343d3c2d82a27 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:04:49 +1100 Subject: [PATCH] Enable zlib-rs for CI build pipeline Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- justfile | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/justfile b/justfile index ca2122d2..2e266f61 100644 --- a/justfile +++ b/justfile @@ -79,30 +79,10 @@ support-pkg-config := if target == target-host { if target-os == "linux" { "true" } else { "" } } else { "" } -#} else if target == "aarch64-unknown-linux-gnu" { -# ",zlib-ng" -#} else if target == "aarch64-unknown-linux-musl" { -# ",zlib-ng" -git-max-perf-feature := if target == "x86_64-apple-darwin" { - ",zlib-ng" -} else if target == "x86_64h-apple-darwin" { - ",zlib-ng" -} else if target == "aarch64-apple-darwin" { - ",zlib-ng" -} else if target-os == "windows" { - ",zlib-ng" -} else if target == "x86_64-unknown-linux-gnu" { - ",zlib-ng" -} else if target == "x86_64-unknown-linux-musl" { - ",zlib-ng" -} else { - "" -} - h3-features := if enable-h3 != "" { ",http3" } else { "" } cargo-features := trim_end_match(if override-features != "" { override-features + h3-features - } else if (cargo-profile / ci-or-no) == "dev/ci" { "git,rustls,fancy-with-backtrace,zstd-thin,log_max_level_debug" + git-max-perf-feature + (if support-pkg-config != "" { ",pkg-config" } else { "" }) + h3-features + extra-features - } else if (cargo-profile / ci-or-no) == "release/ci" { "git,static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug,cross-lang-fat-lto" + git-max-perf-feature + h3-features + extra-features + } else if (cargo-profile / ci-or-no) == "dev/ci" { "git,rustls,fancy-with-backtrace,zstd-thin,log_max_level_debug,zlib-rs" + (if support-pkg-config != "" { ",pkg-config" } else { "" }) + h3-features + extra-features + } else if (cargo-profile / ci-or-no) == "release/ci" { "git,static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug,cross-lang-fat-lto,zlib-rs" + h3-features + extra-features } else if extra-features != "" { extra-features + h3-features } else if enable-h3 != "" { "http3" } else { ""