Update main.py #35
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 Android APK | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y \ | |
| python3-pip \ | |
| python3-setuptools \ | |
| python3-wheel \ | |
| git \ | |
| zip \ | |
| unzip \ | |
| openjdk-17-jdk \ | |
| autoconf \ | |
| libtool \ | |
| pkg-config \ | |
| zlib1g-dev \ | |
| libncurses5-dev \ | |
| libncursesw5-dev \ | |
| libtinfo5 \ | |
| cmake \ | |
| libffi-dev \ | |
| libssl-dev | |
| - name: Install Buildozer | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install buildozer cython | |
| - name: Build debug APK | |
| run: | | |
| buildozer -v android debug | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ayson-debug-apk | |
| path: bin/*.apk |