Skip to content

Commit 3989386

Browse files
committed
Better checking for swift-sdk install location
1 parent fa17cb1 commit 3989386

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/scripts/install-and-build-with-sdk.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ install_android_sdk() {
570570
fi
571571

572572
# now setup the link to the local ANDROID_NDK_HOME
573-
swift sdk configure "${android_sdk_name}" --show-configuration
573+
swift sdk configure --show-configuration "$(swift sdk list | grep android | tail -n 1)"
574+
574575
cd ~/Library/org.swift.swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm
575576

576577
if [[ ! -d "${ANDROID_NDK_HOME}" ]]; then

0 commit comments

Comments
 (0)