Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit committed Oct 17, 2023
1 parent 58e0781 commit fa43b88
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ jobs:
- uses: actions/checkout@v3
- name: setup cargo-ndk
run: |
cargo install cargo-ndk
rustup target add aarch64-linux-android
- name: Build
run: |
export NDK_HOME=$ANDROID_NDK_PATH
export PKG_CONFIG_SYSROOT_DIR=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot
sudo ln -s $NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang $NDK_HOME/bin/aarch64-linux-android-clang
sudo ln -s $NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar $NDK_HOME/bin/aarch64-linux-android-ar
cargo build --release --all-features --target aarch64-linux-android
cargo ndk --platform 21 --target aarch64-linux-android build --release --all-features

0 comments on commit fa43b88

Please sign in to comment.