Skip to content

Commit 9427b75

Browse files
committed
Add post-install script to SDK bundle
1 parent 3999f1c commit 9427b75

File tree

1 file changed

+4
-1
lines changed
  • swift-ci/sdks/android

1 file changed

+4
-1
lines changed

swift-ci/sdks/android/build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ elif [ "${BUILD_VERSION}" = 'devel' ]; then
2626
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-6.2-DEV | cut -d- -f8-10)
2727
SWIFT_TAG="swift-6.2-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
2828
SWIFT_BRANCH="swift-$(echo $SWIFT_TAG | cut -d- -f2)-branch"
29-
else
29+
elif [ "${BUILD_VERSION}" = 'trunk' ]; then
3030
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-DEV | cut -d- -f7-9)
3131
SWIFT_TAG="swift-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
3232
SWIFT_BRANCH="development"
33+
else
34+
echo "$0: invalid BUILD_VERSION=${BUILD_VERSION}"
35+
exit 1
3336
fi
3437

3538
SWIFT_BASE=$SWIFT_TAG-$HOST_OS

0 commit comments

Comments
 (0)