Build kivy2x Android Wheels #17
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 kivy2x Android Wheels | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: macos-15 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13.8' | |
| - name: install cibuildwheel | |
| run: pip install cibuildwheel | |
| - name: setup Android NDK | |
| id: setup-ndk | |
| uses: nttld/setup-ndk@v1 | |
| with: | |
| ndk-version: r28c | |
| - name: build wheels | |
| env: | |
| ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
| run: | | |
| mkdir -p build/wheels | |
| cd build | |
| bash ../kivy_scripts/kivy2x_build_android_wheels.sh | |
| - run: ls build/wheels | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: kivy2x-android-wheels | |
| path: build/wheels/ | |
| anaconda_upload: | |
| name: Upload to Anaconda | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: kivy2x-android-wheels | |
| path: wheels/ | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13.8' | |
| - name: install anaconda client | |
| run: pip install anaconda-client | |
| - name: publish to anaconda | |
| env: | |
| ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
| run: | | |
| for FILE in wheels/*; do | |
| anaconda upload --force "$FILE" --summary "kivy2x Android wheel" | |
| done |