Skip to content

Commit

Permalink
use ndk
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit committed Oct 27, 2023
1 parent 6cf2e68 commit f4c4050
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ jobs:
- uses: actions/checkout@v3
- name: setup
run: |
cargo install cross
wget https://github.com/flaribbit/imgfind/releases/download/model/libheif.so -O .github/libheif.so
cargo target add aarch64-linux-android
- name: Build
run: cross build --release --all-features --target aarch64-linux-android
run: |
export NDK_HOME=$ANDROID_NDK_PATH
export PATH=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
cargo build --release --all-features --target aarch64-linux-android
- uses: actions/upload-artifact@v3
with:
name: android-aarch64
Expand Down

0 comments on commit f4c4050

Please sign in to comment.