Skip to content

Commit 64ff7ac

Browse files
committed
Add some log lines for NDK checking
1 parent 366e878 commit 64ff7ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,14 @@ install_android_sdk() {
655655

656656
# permit the "--android-ndk" flag to override the default
657657
local android_ndk_version="${ANDROID_NDK_VERSION:-r27d}"
658+
log "Checking for Android NDK $android_ndk_version at $ANDROID_NDK_HOME"
658659

659660
# Download and install the Android NDK.
660661
# Note that we could use the system package manager, but it is
661662
# named different things for different distributions
662663
# (e.g., "google-android-ndk-r26-installer" on Debian)
663664
if [[ ! -d "${ANDROID_NDK_HOME:-}" || ! $(grep "Pkg.ReleaseName = ${android_ndk_version}" "${ANDROID_NDK_HOME}/source.properties") ]]; then
665+
log "Android NDK $android_ndk_version may not have matched $(grep "Pkg.ReleaseName" "$ANDROID_NDK_HOME/source.properties")"
664666
curl_with_retry -fsSL -o ndk.zip https://dl.google.com/android/repository/android-ndk-"${android_ndk_version}"-"$(uname -s)".zip
665667
command -v unzip >/dev/null || install_package unzip
666668
unzip -q ndk.zip

0 commit comments

Comments
 (0)