diff --git a/.github/actions/build-single-project/action.yml b/.github/actions/build-single-project/action.yml index 969d4709abb95..8c7af75175857 100644 --- a/.github/actions/build-single-project/action.yml +++ b/.github/actions/build-single-project/action.yml @@ -33,7 +33,9 @@ runs: run: echo "yes" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install "cmake;3.22.1" - name: "Install NDK" shell: bash - run: echo "yes" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install "ndk;23.1.7779620" + run: | + NDK_VERSION=$(grep "ndkVersion" settings.gradle | awk -F "=" '{gsub(/"| /, ""); print $2}') + echo "yes" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install "ndk;$NDK_VERSION" - name: "Install Android SDK Build-Tools" shell: bash run: echo "yes" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install "build-tools;35.0.0-rc1"