Skip to content

Commit 736570b

Browse files
committed
1 parent d12b81d commit 736570b

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
HOST_OS=ubuntu$(lsb_release -sr)
9191
source ./scripts/toolchain-vars.sh
9292
mkdir -p ${{ runner.temp }}/swift-android-sdk/host-toolchain
93-
./scripts/install-swift.sh ${{ runner.temp }}/swift-android-sdk/host-toolchain
93+
./scripts/install-swift.sh ${{ runner.temp }}/swift-android-sdk/host-toolchain/$SWIFT_BASE/usr
9494
ls ${{ runner.temp }}/swift-android-sdk/host-toolchain
9595
${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr/bin/swift --version
9696
- name: Get artifact info

swift-ci/sdks/android/build-local

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ HOST_OS=ubuntu$(lsb_release -sr)
2020
source ./scripts/toolchain-vars.sh
2121

2222
SWIFT_ROOT=${WORKDIR}/host-toolchain
23+
HOST_TOOLCHAIN=$SWIFT_ROOT/$SWIFT_BASE/usr
2324
if [[ ! -d "$SWIFT_ROOT/$SWIFT_BASE" ]]; then
24-
./scripts/install-swift.sh ${SWIFT_ROOT}
25+
./scripts/install-swift.sh ${HOST_TOOLCHAIN}
2526
fi
2627

27-
#HOST_TOOLCHAIN=${HOST_TOOLCHAIN:-$(dirname $(dirname $(which swiftc)))}
28-
HOST_TOOLCHAIN=$SWIFT_ROOT/$SWIFT_BASE/usr
2928
$HOST_TOOLCHAIN/bin/swift --version
3029

3130
# ensure the correct Swift is first in the PATH

swift-ci/sdks/android/scripts/install-swift.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,19 @@ export GNUPGHOME="$tmpdir"
3333

3434
# Fetch the toolchain and signature
3535
echo "Going to fetch ${SWIFT_TOOLCHAIN_URL}"
36-
3736
curl -fsSL "${SWIFT_TOOLCHAIN_URL}" -o toolchain.tar.gz
3837

3938
echo "Going to fetch ${SWIFT_TOOLCHAIN_URL}.sig"
40-
4139
curl -fsSL "${SWIFT_TOOLCHAIN_URL}.sig" -o toolchain.sig
4240

4341
echo "Fetching keys"
44-
4542
curl -fsSL --compressed https://swift.org/keys/all-keys.asc | gpg --import -
4643

4744
echo "Verifying signature"
48-
4945
gpg --batch --verify toolchain.sig toolchain.tar.gz
5046

5147
# Extract and install the toolchain
5248
echo "Extracting Swift"
53-
5449
mkdir -p ${destination}
5550
tar -xzf toolchain.tar.gz --directory ${destination} --strip-components=2
5651
chmod -R o+r ${destination}/lib/swift

0 commit comments

Comments
 (0)