Skip to content

Commit d2aef31

Browse files
committed
CHecking cache not working, put in log lines
1 parent 1fdf087 commit d2aef31

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,14 @@ install_android_sdk() {
678678
# Check if the correct NDK is already cached in the same directory, as
679679
# it often is on GitHub runners, and use it if so
680680
local try_ndk_path=$(find "${ANDROID_NDK_HOME}/.." -name "$(echo $android_ndk_version | tr -d "[:alpha:]")*" -maxdepth 1)
681+
log "looking in $try_ndk_path"
682+
if [[ -d "${try_ndk_path}" ]]; then
683+
log "Found the directory"
684+
fi
685+
local foo=$(cat "${try_ndk_path}/source.properties")
686+
local goo=$(grep -q "Pkg.ReleaseName = ${android_ndk_version}" "${try_ndk_path}/source.properties")
687+
log "Looked in $foo"
688+
log "Got $goo"
681689
if [[ -d "${try_ndk_path}" && $(grep -q "Pkg.ReleaseName = ${android_ndk_version}" "${try_ndk_path}/source.properties") ]]; then
682690
log "Found a matching Android NDK $android_ndk_version at $try_ndk_path instead"
683691
export ANDROID_NDK_HOME="$try_ndk_path"

0 commit comments

Comments
 (0)