Skip to content

Commit 2f0d783

Browse files
authored
Support Swift SDK for Android 6.2.3 (#14)
1 parent 00e6cb0 commit 2f0d783

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,12 @@ runs:
414414
ANDROID_SDK_URL="https://github.com/skiptools/swift-android-toolchain/releases/download/${{ steps.setup.outputs.swift-version }}/${SWIFT_SDK_ARTIFACT}.artifactbundle.tar.gz"
415415
elif [[ "${SWIFT_SDK_ID}" =~ "-6.1." || "${SWIFT_SDK_ID}" =~ "-6.2" ]]; then
416416
# 6.2+ no longer includes the API in the artifactbundle name
417-
SWIFT_SDK_ARTIFACT="${SWIFT_SDK_ID}-android-${SWIFT_SDK_VERSION}"
417+
if [[ "${SWIFT_SDK_ID}" =~ "-6.2.3" ]]; then
418+
# 6.2.3 uses the new "_android" without a version
419+
SWIFT_SDK_ARTIFACT="${SWIFT_SDK_ID}_android"
420+
else
421+
SWIFT_SDK_ARTIFACT="${SWIFT_SDK_ID}-android-${SWIFT_SDK_VERSION}"
422+
fi
418423
ANDROID_SDK_URL="https://github.com/skiptools/swift-android-toolchain/releases/download/${{ steps.setup.outputs.swift-version }}/${SWIFT_SDK_ARTIFACT}.artifactbundle.tar.gz"
419424
fi
420425

0 commit comments

Comments
 (0)