Correctly set CI_OS_NAME for macOs buildkite agents

This commit is contained in:
Michael Vines 2022-01-03 12:53:58 -08:00
parent 53777f2fbf
commit b18462737e
1 changed files with 12 additions and 1 deletions

View File

@ -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