Skip to content

Commit

Permalink
[Build/Android] set option for ml-service
Browse files Browse the repository at this point in the history
Update git-action for android build, enable ml-service and other options.

Signed-off-by: Jaeyun Jung <[email protected]>
  • Loading branch information
jaeyun-jung committed Jan 16, 2025
1 parent 12e7e96 commit 8865b5f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/android-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ runs:
with:
repository: nnstreamer/nnstreamer-android-resource
path: nnstreamer-android-resource
- name: Get deviceMLOps.MLAgent
uses: actions/checkout@v4
with:
repository: nnstreamer/deviceMLOps.MLAgent
path: deviceMLOps.MLAgent
- name: NDK build
id: ndk-build
run: |
Expand All @@ -55,9 +60,10 @@ runs:
export NNSTREAMER_ROOT=${{ github.workspace }}/nnstreamer
export NNSTREAMER_EDGE_ROOT=${{ github.workspace }}/nnstreamer-edge
export NNSTREAMER_ANDROID_RESOURCE=${{ github.workspace }}/nnstreamer-android-resource
export MLOPS_AGENT_ROOT=${{ github.workspace }}/deviceMLOps.MLAgent
export ML_API_ROOT=${{ github.workspace }}
if [ $TARGET_ABI == 'arm64-v8a' ]; then
bash ${{ github.workspace }}/java/build-nnstreamer-android.sh --target_abi=$TARGET_ABI --enable_nnfw=yes
bash ${{ github.workspace }}/java/build-nnstreamer-android.sh --target_abi=$TARGET_ABI --enable_nnfw=yes --enable_mqtt=yes --enable_ml_offloading=yes --enable_ml_service=yes
elif [ $TARGET_ABI == 'x86_64' ]; then
bash ${{ github.workspace }}/java/build-nnstreamer-android.sh --target_abi=$TARGET_ABI --enable_nnfw=no
else
Expand Down

0 comments on commit 8865b5f

Please sign in to comment.