diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc9e8383..49069658 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,9 +142,9 @@ jobs: build_android: runs-on: ubuntu-latest steps: - - name: Set ANDROID_NDK_HOME to latest NDK version + - name: Set ANDROID_NDK_HOME to version specified in build.gradle.kts run: | - echo "ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> "$GITHUB_ENV" + echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/$(./android/scripts/get-ndk-version.sh)" >> "$GITHUB_ENV" - uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03350550..03fc40ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,9 +58,9 @@ jobs: android_test: runs-on: ubuntu-latest steps: - - name: Set ANDROID_NDK_HOME to latest NDK version + - name: Set ANDROID_NDK_HOME to version specified in build.gradle.kts run: | - echo "ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> "$GITHUB_ENV" + echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/$(./android/scripts/get-ndk-version.sh)" >> "$GITHUB_ENV" - uses: actions/checkout@v4 with: submodules: true