Skip to content

Commit 0bcefbd

Browse files
committed
Fix GitHub Actions workflow
1 parent 25fb34e commit 0bcefbd

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,28 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

15-
- name: Build with Buildozer
16-
uses: ArtemSBulgakov/buildozer-action@v1
17-
id: buildozer
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
1817
with:
19-
command: buildozer android debug
20-
buildozer_version: stable
18+
python-version: '3.11'
19+
20+
- name: Install dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y git zip unzip openjdk-17-jdk wget
24+
pip install --upgrade pip
25+
pip install buildozer cython
26+
27+
- name: Build with Buildozer
28+
run: |
29+
buildozer android debug
30+
env:
31+
ANDROID_SDK_ROOT: /usr/local/lib/android/sdk
2132

2233
- name: Upload APK
23-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
2435
with:
2536
name: calculator-apk
2637
path: bin/*.apk

0 commit comments

Comments
 (0)