Skip to content

Commit c7557be

Browse files
committed
Use 5.3 nightly snapshots on macOS
1 parent c1660bc commit c7557be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/webassembly/install-nightly-toolchain.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ DESTINATION="${SOURCE_DIR}/swift-nightly-toolchain"
55

66
mkdir -p $DESTINATION
77

8+
BASE_URL="https://swift.org/builds/swift-5.3-branch"
9+
810
install_linux() {
911
WORKSPACE=$(mktemp -d)
1012

1113
pushd ${WORKSPACE}
1214

13-
BASE_URL=https://swift.org/builds/swift-5.3-branch/ubuntu1804
14-
export $(/usr/bin/curl ${BASE_URL}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g')
15+
export $(/usr/bin/curl ${BASE_URL}/ubuntu1804/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g')
1516

1617
DOWNLOAD_DIR=$(echo $download | sed "s/-ubuntu18.04.tar.gz//g")
1718
DOWNLOAD_URL=${BASE_URL}/${DOWNLOAD_DIR}/${download}
@@ -29,7 +30,6 @@ install_macos() {
2930

3031
pushd ${WORKSPACE}
3132

32-
BASE_URL=https://swift.org/builds/development/
3333
export $(/usr/bin/curl --silent ${BASE_URL}/xcode/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g')
3434

3535
DOWNLOAD_DIR=$(echo $download | sed "s/-osx.pkg//g")

0 commit comments

Comments
 (0)