feat(android): add task to build Android wheels for Chaquopy and update CI workflows to remove ffmpeg dependency

This commit is contained in:
Ivan
2026-04-19 11:36:56 -05:00
parent a6764d3d38
commit 69b02a2a86
3 changed files with 15 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ jobs:
run: |
sh scripts/ci/exec-priv.sh dpkg --add-architecture i386
sh scripts/ci/exec-priv.sh apt-get update
sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 ffmpeg espeak-ng zip rpm elfutils appstream appstream-util
sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 espeak-ng zip rpm elfutils appstream appstream-util
- name: Setup Task
run: sh scripts/ci/setup-task.sh

View File

@@ -88,7 +88,7 @@ jobs:
run: |
sh scripts/ci/exec-priv.sh dpkg --add-architecture i386
sh scripts/ci/exec-priv.sh apt-get update
sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 ffmpeg espeak-ng zip rpm elfutils
sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 espeak-ng zip rpm elfutils
- name: Setup Task
run: sh scripts/ci/setup-task.sh

View File

@@ -477,6 +477,19 @@ tasks:
cp -r meshchatx "{{.PYTHON_SRC_DIR}}/"
echo "MeshChatX Python sources staged. Dependency installation is handled by Chaquopy in android/app/build.gradle."
android:wheels:
desc: Build the Android (Chaquopy) wheels into android/vendor/. Mirrors CI.
vars:
ANDROID_WHEEL_PYTHON: '{{.ANDROID_WHEEL_PYTHON | default "3.11"}}'
ANDROID_WHEEL_ABIS: '{{.ANDROID_WHEEL_ABIS | default "arm64-v8a,x86_64,armeabi-v7a"}}'
ANDROID_WHEEL_CHAQUOPY_REF: '{{.ANDROID_WHEEL_CHAQUOPY_REF | default "9f563f45108a873d7feb363e1f754c0173f1114e"}}'
cmds:
- |
bash scripts/build-android-wheels-local.sh \
--python-minor "{{.ANDROID_WHEEL_PYTHON}}" \
--chaquopy-ref "{{.ANDROID_WHEEL_CHAQUOPY_REF}}" \
--abis "{{.ANDROID_WHEEL_ABIS}}"
android:build:
desc: Build Debug APK
deps: [android:prepare]