Skip to content

Commit d12b81d

Browse files
committed
1 parent 32c442b commit d12b81d

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@ jobs:
8585
if: ${{ matrix.build-type == 'docker' }}
8686
working-directory: swift-ci/sdks/android
8787
run: |
88-
# when building in a Docker container, we don't have a host toolchain
89-
# locally, but we need one in order to run the SDK validation tests
88+
# when building in a Docker container, we don't have a local host toolchain,
89+
# but we need one in order to run the SDK validation tests, so we install it now
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/swift
94-
${{ runner.temp }}/swift-android-sdk/host-toolchain/swift/bin/swift --version
93+
./scripts/install-swift.sh ${{ runner.temp }}/swift-android-sdk/host-toolchain
94+
ls ${{ runner.temp }}/swift-android-sdk/host-toolchain
95+
${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr/bin/swift --version
9596
- name: Get artifact info
9697
id: info
9798
shell: bash

swift-ci/sdks/android/build-local

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ source ./scripts/toolchain-vars.sh
2121

2222
SWIFT_ROOT=${WORKDIR}/host-toolchain
2323
if [[ ! -d "$SWIFT_ROOT/$SWIFT_BASE" ]]; then
24-
mkdir -p $SWIFT_ROOT
25-
pushd $SWIFT_ROOT
26-
27-
wget -q $SWIFT_TOOLCHAIN_URL
28-
tar xzf $SWIFT_BASE.tar.gz
29-
30-
popd
24+
./scripts/install-swift.sh ${SWIFT_ROOT}
3125
fi
3226

3327
#HOST_TOOLCHAIN=${HOST_TOOLCHAIN:-$(dirname $(dirname $(which swiftc)))}

0 commit comments

Comments
 (0)