Skip to content

Commit 3d6cb0f

Browse files
committed
Add swift-install output with the root of the Swift host toolchain
1 parent 4673a6e commit 3d6cb0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ outputs:
1010
swift-sdk:
1111
description: 'The swift SDK that is used to build for Android'
1212
value: ${{ steps.install.outputs.swift-sdk }}
13+
swift-install:
14+
description: 'The installation root for the host Swift toolchain'
15+
value: ${{ steps.install.outputs.swiftroot }}
1316
inputs:
1417
swift-version:
1518
description: 'The version of the Swift toolchain to use'
@@ -203,6 +206,7 @@ runs:
203206
204207
echo "SWIFT_SDK_BUNDLE=${SWIFT_SDK_BUNDLE}" >> $GITHUB_ENV
205208
209+
echo "swiftroot=${SWIFT_INSTALLATION}" >> $GITHUB_OUTPUT
206210
echo "swiftcmd=TARGET_OS_ANDROID=1 SKIP_BRIDGE=1 ${SWIFT_INSTALLATION}/bin/swift build --swift-sdk ${SWIFT_SDK_TARGET} -Xswiftc -DTARGET_OS_ANDROID -Xswiftc -DSKIP_BRIDGE ${{ inputs.swift-build-flags }}" >> $GITHUB_OUTPUT
207211
echo "swift-sdk=${SWIFT_SDK_TARGET}" >> $GITHUB_OUTPUT
208212

0 commit comments

Comments
 (0)