Skip to content

Commit 83d5857

Browse files
committed
Fix artifactbundle name for SDK 6.1 downloads
1 parent 626f26a commit 83d5857

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/test-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
fail-fast: false
5757
matrix:
5858
os: ['ubuntu-24.04', 'ubuntu-22.04', 'macos-13', 'macos-15']
59-
swift-version: ['6.0', '6.1']
59+
swift-version: ['6.0', '6.1', 'nightly-6.2']
6060
steps:
6161
- name: Checkout Action
6262
uses: actions/checkout@v4

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,19 +300,20 @@ runs:
300300
mkdir -p ${RUNNER_TEMP}/swift-android-toolchain
301301
cd ${RUNNER_TEMP}/swift-android-toolchain
302302
303-
SWIFT_SDK_ID="${{ steps.setup.outputs.swift-id }}-android"
303+
SWIFT_SDK_ID="${{ steps.setup.outputs.swift-id }}"
304304
# TODO: identify the version automatically
305305
SWIFT_SDK_VERSION="0.1"
306306
307307
if [[ "${SWIFT_SDK_ID}" =~ "6.0" || "${SWIFT_SDK_ID}" =~ "6.1" ]]; then
308308
# Swift Android SDK 6.0/6.1 targets API 24+
309309
SWIFT_SDK_ANROID_API="24"
310-
SWIFT_SDK_ID="${SWIFT_SDK_ID}-${SWIFT_SDK_ANROID_API}-${SWIFT_SDK_VERSION}"
310+
SWIFT_SDK_ID="${SWIFT_SDK_ID}-${SWIFT_SDK_ANROID_API}-android-${SWIFT_SDK_VERSION}"
311311
else
312312
# Swift Android SDK 6.2+ targets API 28+
313313
SWIFT_SDK_ANROID_API="28"
314314
# 6.2+ no longer includes the API in the artifactbundle name
315-
SWIFT_SDK_ID="${SWIFT_SDK_ID}-${SWIFT_SDK_VERSION}"
315+
# it also uses an underscore instead of a dash before "android"
316+
SWIFT_SDK_ID="${SWIFT_SDK_ID}_android-${SWIFT_SDK_VERSION}"
316317
fi
317318
ANDROID_SDK_URL="https://github.com/skiptools/swift-android-toolchain/releases/download/${{ steps.setup.outputs.swift-version }}/${SWIFT_SDK_ID}.artifactbundle.tar.gz"
318319

0 commit comments

Comments
 (0)