Skip to content

Commit e823d65

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

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
@@ -572,7 +572,8 @@ install_android_sdk() {
572572
# now setup the link to the local ANDROID_NDK_HOME
573573
swift sdk configure --show-configuration "$(swift sdk list | grep android | tail -n 1)"
574574

575-
cd ~/Library/org.swift.swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm
575+
# guess some common places where the swift-sdks file lives
576+
cd ~/Library/org.swift.swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm || cd /root/.swiftpm
576577

577578
if [[ ! -d "${ANDROID_NDK_HOME}" ]]; then
578579
# download and install the Android NDK

0 commit comments

Comments
 (0)