Skip to content

Commit

Permalink
CI: setup cargo-ndk for huggingface tokenizers android builds (#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk authored Nov 18, 2024
1 parent 0d3a113 commit 88f7c4e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/native_jni_s3_huggingface_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
${{ runner.os }}-gradle-
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}"
- name: Install Rust
run: |
source "$HOME/.cargo/env"
cargo install cargo-ndk
rustup target add \
aarch64-linux-android \
armv7-linux-androideabi \
x86_64-linux-android \
i686-linux-android
- name: build android
run: |
export ANDROID_NDK=${ANDROID_SDK_ROOT}/ndk/${NDK_VERSION}
Expand Down

0 comments on commit 88f7c4e

Please sign in to comment.