From 9cbb11a9a68d6dc5fa19f7f0fed64c645dab2171 Mon Sep 17 00:00:00 2001 From: OmkarDeshpande7 Date: Wed, 8 Mar 2023 12:44:36 +0530 Subject: [PATCH] add CI script for TC --- .ci/build.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .ci/build.sh diff --git a/.ci/build.sh b/.ci/build.sh new file mode 100755 index 0000000000000..37a26d027e1cb --- /dev/null +++ b/.ci/build.sh @@ -0,0 +1,18 @@ +source ~/.bashrc +GO_VERSION=${GO_VERSION:-1.19} + +configure_go() { + if [ -n "${USE_SYSTEM_GO:-}" ] ; then + echo "\$USE_SYSTEM_GO set, using system go instead of gimme" + return 0 + else + which gimme > /dev/null || (echo "error: missing required command 'gimme'" && exit 1) + eval "$(GIMME_GO_VERSION=${GO_VERSION} gimme)" + fi + which go + go version +} + +configure_go + +KUBE_BUILD_PLATFORMS=linux/amd64 make all WHAT=cmd/kubelet GOFLAGS=-v \ No newline at end of file