diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 736532c..9a1915d 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -6,6 +6,7 @@ on: env: GH_TOKEN: ${{ secrets.GH_TOKEN }} RUST_TOOLCHAIN: nightly-2024-04-15 + NDK_VERSION: 25.2.9519653 jobs: @@ -175,7 +176,7 @@ jobs: uses: android-actions/setup-android@v3 with: cmdline-tools-version: 8512546 - packages: 'platform-tools platforms;android-32 build-tools;30.0.2 ndk;23.1.7779620' + packages: 'platform-tools platforms;android-32 build-tools;30.0.2 ndk;${{ env.NDK_VERSION }}' - name: Install libfuse2 (Linux) if: steps.check_asset.outputs.skip_build != 'true' && matrix.config.target == 'linux' @@ -234,6 +235,7 @@ jobs: - name: Install rust target and build (Android-arm64) if: steps.check_asset.outputs.skip_build != 'true' && ( matrix.config.target == 'android-arm64') run: | + export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/${{ env.NDK_VERSION }} rustup target install aarch64-linux-android cd native/jmbackend/platforms/android cargo ndk -o ../../../../android/app/src/main/jniLibs -t arm64-v8a build --release @@ -243,6 +245,7 @@ jobs: - name: Install rust target and build (Android-arm32) if: steps.check_asset.outputs.skip_build != 'true' && ( matrix.config.target == 'android-arm32') run: | + export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/${{ env.NDK_VERSION }} rustup target install armv7-linux-androideabi cd native/jmbackend/platforms/android cargo ndk -o ../../../../android/app/src/main/jniLibs -t armeabi-v7a build --release @@ -252,6 +255,7 @@ jobs: - name: Install rust target and build (Android-x86_64) if: steps.check_asset.outputs.skip_build != 'true' && ( matrix.config.target == 'android-x86_64') run: | + export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/${{ env.NDK_VERSION }} rustup target install x86_64-linux-android cd native/jmbackend/platforms/android cargo ndk -o ../../../../android/app/src/main/jniLibs -t x86_64 build --release