Skip to content

Commit

Permalink
♻️
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Aug 26, 2024
1 parent c970bf3 commit d6ba367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
RUST_TOOLCHAIN: nightly-2024-04-15
NDK_VERSION: 25.2.9519653

jobs:

Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d6ba367

Please sign in to comment.