Skip to content

Commit

Permalink
ci: minor change in acquire_sdk.sh and add future TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Velickovic committed Sep 23, 2023
1 parent a7dac4c commit 794ce77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/acquire_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ 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
echo "Unknown SDK_TARGET: $SDK_TARGET"
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}"\
Expand Down

0 comments on commit 794ce77

Please sign in to comment.