From fd4754e5a9b80d039db5c1ed2b83a2d7fdebf908 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 3 Jan 2022 12:53:58 -0800 Subject: [PATCH] Correctly set CI_OS_NAME for macOs buildkite agents --- ci/env.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ci/env.sh b/ci/env.sh index 973f4c8532..10305ee1a7 100644 --- a/ci/env.sh +++ b/ci/env.sh @@ -35,7 +35,18 @@ if [[ -n $CI ]]; then export CI_BASE_BRANCH=$BUILDKITE_BRANCH export CI_PULL_REQUEST= fi - export CI_OS_NAME=linux + + case "$(uname -s)" in + Linux) + export CI_OS_NAME=linux + ;; + Darwin) + export CI_OS_NAME=osx + ;; + *) + ;; + esac + if [[ -n $BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG ]]; then # The solana-secondary pipeline should use the slug of the pipeline that # triggered it