From 794ce77d71f0eaf9ab16ac442c6ce80d1d1a592b Mon Sep 17 00:00:00 2001 From: Ivan Velickovic Date: Wed, 9 Aug 2023 00:06:02 +1000 Subject: [PATCH] ci: minor change in acquire_sdk.sh and add future TODO --- ci/acquire_sdk.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/acquire_sdk.sh b/ci/acquire_sdk.sh index 323599b2..edced959 100755 --- a/ci/acquire_sdk.sh +++ b/ci/acquire_sdk.sh @@ -23,6 +23,8 @@ ARCHIVE_FORMAT="zip" if [[ $SDK_TARGET == "macos-x86-64" ]]; then ARTIFACT_INDEX=0 +elif [[ $SDK_TARGET == "macos-aarch64" ]]; then + ARTIFACT_INDEX=1 elif [[ $SDK_TARGET == "linux-x86-64" ]]; then ARTIFACT_INDEX=2 else @@ -30,6 +32,10 @@ else exit 1 fi +# @ivanv: should assert that the SDK target matches what we expect after +# we actually get the artifact. Or, even better, we find a way to extract +# the artifact ID that matches our target + ARTIFACT_ID=`curl \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${GITHUB_TOKEN}"\