From 0af28e020fb528c19386e658bdb7227d91b64f77 Mon Sep 17 00:00:00 2001 From: Loong Dai Date: Mon, 4 Sep 2023 14:07:05 +0800 Subject: [PATCH] ci: support static build (#230) Signed-off-by: Loong --- ci/do_ci.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/do_ci.sh b/ci/do_ci.sh index aaf9be5d4d..32eac7ded6 100755 --- a/ci/do_ci.sh +++ b/ci/do_ci.sh @@ -550,6 +550,12 @@ case $CI_TARGET in "${TEST_TARGETS[@]}" ;; + # build totally static binary + dev.contrib.static) + setup_clang_toolchain + bazel build --linkopt=-static --copt=-static //contrib/exe:envoy-static + ;; + distribution) echo "Building distro packages..." setup_clang_toolchain