Skip to content

Commit 3b271ea

Browse files
committed
Run script/setup-android-sdk.sh script if it is present
1 parent 9e3da57 commit 3b271ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@ runs:
335335
SWIFT_SDK_ARTIFACT_ID=$(cat ${SWIFT_SDK_ARTIFACTBUNDLE}/info.json | jq -r '.artifacts[] | .variants[0].path')
336336
SWIFT_ARTIFACTBUNDLE_ROOT="${SWIFT_SDK_ARTIFACTBUNDLE}/${SWIFT_SDK_ARTIFACT_ID}"
337337
338+
# run the SDK setup script if it exists
339+
SWIFT_SDK_SETUP="${SWIFT_ARTIFACTBUNDLE_ROOT}/script/setup-android-sdk.sh"
340+
if [[ -x "${SWIFT_SDK_SETUP}" ]]; then
341+
${SWIFT_SDK_SETUP}
342+
fi
343+
338344
# extract the sdkRootPath from the swift-sdk.json
339345
SWIFT_SDK_ROOT_PATH=$(cat ${SWIFT_ARTIFACTBUNDLE_ROOT}/swift-sdk.json | jq -r '.targetTriples[] | .sdkRootPath' | head -n 1)
340346
SWIFT_ARTIFACTBUNDLE_SDK_ROOT_PATH="${SWIFT_ARTIFACTBUNDLE_ROOT}/${SWIFT_SDK_ROOT_PATH}"

0 commit comments

Comments
 (0)