[bin] build(artifacts): add prebuilt andro binaries for all target ABIs #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| android-build: | |
| name: Android Multi-ABI Build | |
| runs-on: ubuntu-latest | |
| env: | |
| NDK_VERSION: "26.3.11579264" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install NDK | |
| run: | | |
| yes | sdkmanager --licenses >/dev/null | |
| sdkmanager "ndk;${NDK_VERSION}" | |
| - name: Build all ABIs | |
| run: | | |
| export ANDROID_NDK="${ANDROID_SDK_ROOT}/ndk/${NDK_VERSION}" | |
| chmod +x ./build.sh | |
| ./build.sh all clean | |
| - name: Verify build outputs | |
| run: | | |
| set -euo pipefail | |
| for abi in arm64-v8a armeabi-v7a x86 x86_64; do | |
| test -f "bin/${abi}/andro" | |
| ls -lh "bin/${abi}/andro" | |
| done | |
| - name: Upload binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: andro-binaries | |
| path: | | |
| bin/arm64-v8a/andro | |
| bin/armeabi-v7a/andro | |
| bin/x86/andro | |
| bin/x86_64/andro |