Skip to content

Update main.yml

Update main.yml #15

Workflow file for this run

name: Build Kivy APK
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.10
# Step 3: Install Buildozer and dependencies
- name: Install Buildozer
run: |
sudo apt update
sudo apt install -y python3-pip python3-setuptools git zip
pip install --upgrade pip
pip install buildozer cython
# Step 4: Install Android NDK and SDK
- name: Install Android Tools
run: |
sudo apt install -y openjdk-11-jdk
buildozer android clean
buildozer android update
# Step 5: Build the APK
- name: Build APK
run: |
buildozer -v android debug
# Step 6: Upload APK as an artifact
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: kivy-app-debug.apk
path: bin/*.apk