Skip to content

Commit 2555990

Browse files
authored
Update build-docker to check out the trunk and release branches instead of tags when building the compiler from source
1 parent ecc628e commit 2555990

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

swift-ci/sdks/android/build-docker

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ HOST_OS=ubuntu24.04
2626
source ./scripts/toolchain-vars.sh
2727

2828
# Check-out and patch the sources
29+
if [[ "${BUILD_COMPILER}" != "1" ]]; then
2930
./scripts/fetch-source.sh --source-dir ${WORKDIR}/source --swift-tag ${SWIFT_TAG}
31+
else
32+
if [[ "${BUILD_SCHEME}" == "development" ]]; then
33+
./scripts/fetch-source.sh --source-dir ${WORKDIR}/source --swift-scheme main
34+
else
35+
./scripts/fetch-source.sh --source-dir ${WORKDIR}/source --swift-scheme release/6.2
36+
fi
37+
fi
3038
./patches/apply-patches.sh ${WORKDIR}/source/swift-project
3139

3240
mkdir -p ${WORKDIR}/products

0 commit comments

Comments
 (0)