File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,14 @@ jobs:
85
85
if : ${{ matrix.build-type == 'docker' }}
86
86
working-directory : swift-ci/sdks/android
87
87
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
90
90
HOST_OS=ubuntu$(lsb_release -sr)
91
91
source ./scripts/toolchain-vars.sh
92
92
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
95
96
- name : Get artifact info
96
97
id : info
97
98
shell : bash
Original file line number Diff line number Diff line change @@ -21,13 +21,7 @@ source ./scripts/toolchain-vars.sh
21
21
22
22
SWIFT_ROOT=${WORKDIR} /host-toolchain
23
23
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}
31
25
fi
32
26
33
27
# HOST_TOOLCHAIN=${HOST_TOOLCHAIN:-$(dirname $(dirname $(which swiftc)))}
You can’t perform that action at this time.
0 commit comments