From 86b50eda15243a74edcb22d31a8df3cee0aeb5c8 Mon Sep 17 00:00:00 2001 From: chungthuang Date: Sun, 17 Dec 2023 16:01:01 +0000 Subject: [PATCH] TUN-8072: Add script to download cloudflare go for Mac build agents --- .teamcity/{build-macos.sh => mac/build.sh} | 4 ++-- .teamcity/mac/install-cloudflare-go.sh | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) rename .teamcity/{build-macos.sh => mac/build.sh} (98%) create mode 100755 .teamcity/mac/install-cloudflare-go.sh diff --git a/.teamcity/build-macos.sh b/.teamcity/mac/build.sh similarity index 98% rename from .teamcity/build-macos.sh rename to .teamcity/mac/build.sh index 58cd3308..d2c80be4 100755 --- a/.teamcity/build-macos.sh +++ b/.teamcity/mac/build.sh @@ -143,7 +143,7 @@ if [[ ! -z "$CODE_SIGN_NAME" ]]; then codesign -s "${CODE_SIGN_NAME}" -f -v --timestamp --options runtime ${BINARY_NAME} # notarize the binary - # TODO: https://jira.cfdata.org/browse/TUN-5789 + # TODO: TUN-5789 fi # creating build directory @@ -169,7 +169,7 @@ if [[ ! -z "$PKG_SIGN_NAME" ]]; then ${PKGNAME} # notarize the package - # TODO: https://jira.cfdata.org/browse/TUN-5789 + # TODO: TUN-5789 else pkgbuild --identifier com.cloudflare.${PRODUCT} \ --version ${VERSION} \ diff --git a/.teamcity/mac/install-cloudflare-go.sh b/.teamcity/mac/install-cloudflare-go.sh new file mode 100755 index 00000000..587cf20d --- /dev/null +++ b/.teamcity/mac/install-cloudflare-go.sh @@ -0,0 +1,11 @@ +cd /tmp/ +git clone -q https://github.com/cloudflare/go +cd go/src +# https://github.com/cloudflare/go/tree/34129e47042e214121b6bbff0ded4712debed18e is version go1.21.5-devel-cf +git checkout -q 34129e47042e214121b6bbff0ded4712debed18e +./make.bash + +export PATH="/tmp/go/bin:$PATH" +go version +which go +go env \ No newline at end of file