Skip to content

Commit 1ee8129

Browse files
authored
Update install-and-build-with-sdk.sh to set NDK location
1 parent f0861cc commit 1ee8129

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -733,13 +733,6 @@ install_android_sdk() {
733733
fi
734734
fi
735735

736-
# Save NDK var for build later
737-
if [[ -n "${GITHUB_ENV:-}" ]]; then
738-
{
739-
echo "SWIFT_ANDROID_NDK_HOME=${ANDROID_NDK_HOME}"
740-
} >> "$GITHUB_ENV"
741-
fi
742-
743736
# run the bundled setup script with the matched toolchain in front of PATH
744737
# so any 'swift' it invokes resolves to the version that matches the SDK
745738
local toolchain_bin_dir
@@ -823,7 +816,8 @@ build() {
823816
alias swift='$SWIFT_EXECUTABLE_FOR_ANDROID_SDK'
824817

825818
log "Using NDK at $ANDROID_NDK_HOME"
826-
819+
820+
echo "ANDROID_NDK_HOME=${ANDROID_NDK_HOME}" >> $GITHUB_ENV
827821
# This can become a single invocation in the future when `swift build` supports multiple Android triples at once
828822
for android_sdk_triple in "${ANDROID_SDK_TRIPLES[@]}" ; do
829823
if [[ "$SWIFT_VERSION_INPUT" == "6.3" || "$SWIFT_VERSION_INPUT" == "nightly-6.3" ]]; then

0 commit comments

Comments
 (0)