-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.12 # Use Python 3.10 to avoid compatibility issues with Buildozer
# Step 3: Install dependencies
- name: Install Buildozer and dependencies
run: |
sudo apt update
sudo apt install -y python3-pip python3-setuptools python3-distutils git zip openjdk-11-jdk
pip install --upgrade pip
pip install buildozer cython
# Step 4: Build the APK
- name: Build APK
run: |
buildozer -v android debug
# Step 5: Upload APK as an artifact
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: kivy-app-debug.apk
path: bin/*.apk