File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 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
93
+ ./scripts/install-swift.sh ${{ runner.temp }}/swift-android-sdk/host-toolchain/$SWIFT_BASE/usr
94
94
ls ${{ runner.temp }}/swift-android-sdk/host-toolchain
95
95
${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr/bin/swift --version
96
96
- name : Get artifact info
Original file line number Diff line number Diff line change @@ -20,12 +20,11 @@ HOST_OS=ubuntu$(lsb_release -sr)
20
20
source ./scripts/toolchain-vars.sh
21
21
22
22
SWIFT_ROOT=${WORKDIR} /host-toolchain
23
+ HOST_TOOLCHAIN=$SWIFT_ROOT /$SWIFT_BASE /usr
23
24
if [[ ! -d " $SWIFT_ROOT /$SWIFT_BASE " ]]; then
24
- ./scripts/install-swift.sh ${SWIFT_ROOT }
25
+ ./scripts/install-swift.sh ${HOST_TOOLCHAIN }
25
26
fi
26
27
27
- # HOST_TOOLCHAIN=${HOST_TOOLCHAIN:-$(dirname $(dirname $(which swiftc)))}
28
- HOST_TOOLCHAIN=$SWIFT_ROOT /$SWIFT_BASE /usr
29
28
$HOST_TOOLCHAIN /bin/swift --version
30
29
31
30
# ensure the correct Swift is first in the PATH
Original file line number Diff line number Diff line change @@ -33,24 +33,19 @@ export GNUPGHOME="$tmpdir"
33
33
34
34
# Fetch the toolchain and signature
35
35
echo " Going to fetch ${SWIFT_TOOLCHAIN_URL} "
36
-
37
36
curl -fsSL " ${SWIFT_TOOLCHAIN_URL} " -o toolchain.tar.gz
38
37
39
38
echo " Going to fetch ${SWIFT_TOOLCHAIN_URL} .sig"
40
-
41
39
curl -fsSL " ${SWIFT_TOOLCHAIN_URL} .sig" -o toolchain.sig
42
40
43
41
echo " Fetching keys"
44
-
45
42
curl -fsSL --compressed https://swift.org/keys/all-keys.asc | gpg --import -
46
43
47
44
echo " Verifying signature"
48
-
49
45
gpg --batch --verify toolchain.sig toolchain.tar.gz
50
46
51
47
# Extract and install the toolchain
52
48
echo " Extracting Swift"
53
-
54
49
mkdir -p ${destination}
55
50
tar -xzf toolchain.tar.gz --directory ${destination} --strip-components=2
56
51
chmod -R o+r ${destination} /lib/swift
You can’t perform that action at this time.
0 commit comments