Skip to content

Commit 7f88786

Browse files
authored
Add CI workflow for building APK with Buildozer
1 parent 2d1fbc3 commit 7f88786

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ main ]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
# 1. Instalar dependencias que faltaban en Colab (para asegurar)
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y libtool libtool-bin autoconf automake
18+
19+
# 2. Construir la APK usando la acción de Buildozer
20+
- name: Build with Buildozer
21+
uses: ArtemSBulgakov/buildozer-action@v1
22+
id: buildozer
23+
with:
24+
command: buildozer android debug
25+
buildozer_version: stable
26+
27+
# 3. Subir el resultado para que lo descargues
28+
- name: Upload APK
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: snake-game-apk
32+
path: bin/*.apk

0 commit comments

Comments
 (0)