Skip to content

Commit

Permalink
chore: Update Android build workflow to use Python 3.10
Browse files Browse the repository at this point in the history
Refactor the Android build workflow to use the Gradle wrapper for building the Android project. This ensures consistent and reproducible builds across different environments. Additionally, update the Python version to 3.10 to align with the required dependencies for successful Android builds.
  • Loading branch information
alevilar committed Sep 4, 2024
1 parent 5245b8e commit 0716153
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/android.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,13 @@ jobs:
steps:

- uses: actions/checkout@v2
s

# Set up Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12' #set your python version
# cache: 'pip' # caching pip dependencies
- run: |
pip install --upgrade pip
pip install python-escpos==3.1
pip install 'python-socketio[client]'
pip install python-dotenv==1.0.1
pip install platformdirs==4.2.2
pip install kivy==2.3.0
pip install cython==3.0.11
pip install buildozer==1.5.0
pip install -r requirements.android.txt

- name: Build APK
uses: digreatbrian/buildozer-action@v1
with:
buildozer-cmd: buildozer -v android debug
work-dir: . # directory where your main.py file rest
python-version: '3.10'

- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down
File renamed without changes.

0 comments on commit 0716153

Please sign in to comment.