Skip to content

Commit bf5d18d

Browse files
committed
Switch back to building 6.2 from a tag
1 parent d05b59d commit bf5d18d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

swift-ci/sdks/android/scripts/fetch-source.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ elif [[ $SWIFT_VERSION == tag:* ]]; then
149149
utils/update-checkout ${clone_arg} --tag ${SWIFT_VERSION#tag:} ${extra_args}
150150
else
151151
utils/update-checkout ${clone_arg} --tag swift-${SWIFT_VERSION}-RELEASE ${extra_args}
152-
if [[ $SWIFT_VERSION == '6.2' ]]; then
153-
curl -fsSL https://github.com/swiftlang/swift/pull/84061.patch > 84061.patch
154-
git apply 84061.patch
155-
fi
152+
fi
153+
154+
if [[ $SWIFT_VERSION == '6.2' || $SWIFT_VERSION == 'tag:swift-6.2-RELEASE' ]]; then
155+
curl -fsSL https://github.com/swiftlang/swift/pull/84061.patch > 84061.patch
156+
git apply 84061.patch
156157
fi
157158

158159
popd >/dev/null

swift-ci/sdks/android/scripts/toolchain-vars.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ elif [[ $SWIFT_VERSION == scheme:* ]]; then
4949
echo "Building $SWIFT_VERSION with prebuilt Swift $RELEASE_TAG compiler"
5050
BUILD_COMPILER=yes
5151
echo "Branch scheme builds always build the Swift compiler from source and take much longer."
52+
else
53+
echo "Invalid SWIFT_VERSION: $SWIFT_VERSION"
54+
exit 1
5255
fi
5356

5457
SWIFT_BASE=$SWIFT_TAG-$HOST_OS

0 commit comments

Comments
 (0)