Skip to content

Commit

Permalink
ci: add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Oct 16, 2023
1 parent a2921bc commit ffeced8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build-aar-test
on:
push: {}

jobs:
android-build:
runs-on: macos-12
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install NumPy
run: pip install --no-cache-dir --user numpy

- name: echo
run: |
echo $ANDROID_HOME
echo $ANDROID_NDK_HOME
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r21e
add-to-path: false

- name: Build
run: |
make android_arm64
make install
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Upload mediapipe_android.aar
uses: actions/upload-artifact@v3
with:
name: mediapipe_android.aar
path: Assets/MediaPipe/SDK/Plugins/Android/mediapipe_android.aar

0 comments on commit ffeced8

Please sign in to comment.