Skip to content

Commit aa5ef4a

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

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,10 @@ install_android_sdk() {
677677
log "Android NDK $android_ndk_version did not match $(grep "Pkg.ReleaseName" "$ANDROID_NDK_HOME/source.properties")"
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
680+
local foo="$(ls $ANDROID_NDK_HOME/..)
681+
local goo=$(echo $android_ndk_version | tr -d "[:alpha:]")
680682
local try_ndk_path=$(find "${ANDROID_NDK_HOME}/.." -name "$(echo $android_ndk_version | tr -d "[:alpha:]")*" -maxdepth 1)
683+
log "looking in $foo for $try_ndk_path with $goo"
681684
if [[ -d "${try_ndk_path}" && $(grep -q "Pkg.ReleaseName = ${android_ndk_version}" "${try_ndk_path}/source.properties") ]]; then
682685
log "Found a matching Android NDK $android_ndk_version at $try_ndk_path instead"
683686
export ANDROID_NDK_HOME="$try_ndk_path"

0 commit comments

Comments
 (0)