@@ -165,6 +165,72 @@ jobs:
165165 - name : Publish package to PyPI
166166 uses : pypa/gh-action-pypi-publish@release/v1
167167
168+ build-android-artifacts :
169+ name : build-android-armeabi-v7a
170+ runs-on : ${{ matrix.image }}
171+ strategy :
172+ fail-fast : false
173+ matrix :
174+ platform : [ x64 ]
175+ include :
176+ - platform : x64
177+ image : ubuntu-22.04
178+ defaults :
179+ run :
180+ shell : bash
181+ steps :
182+ - uses : actions/checkout@v4
183+
184+ # Used to cache dependencies with a timeout
185+ - name : Get Date
186+ id : get-date
187+ run : |
188+ echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
189+ shell : bash
190+
191+ - name : Cache Buildozer global directory
192+ uses : actions/cache@v4
193+ with :
194+ path : .buildozer_global
195+ key : buildozer-global-${{ hashFiles('buildozer.spec') }}
196+
197+ - uses : actions/cache@v4
198+ with :
199+ path : .buildozer
200+ key : ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('buildozer.spec') }}
201+
202+ - name : Set up Python 3.12
203+ uses : actions/setup-python@v5
204+ with :
205+ python-version : 3.12
206+
207+ - name : Install poetry and dependencies
208+ uses : ./.github/actions/bootstrap-poetry
209+ with :
210+ os : linux
211+
212+ - name : Install MTDev
213+ run : sudo apt-get install -y mtdev-tools gettext
214+
215+ # Set up Java 17 required by Gradle
216+ - name : Setup Java 17 required by Gradle
217+ uses : actions/setup-java@v3
218+ with :
219+ distribution : ' temurin' # or 'zulu', 'liberica', etc.
220+ java-version : ' 17'
221+
222+ - name : Build release
223+ run : |
224+ DATE=$(date +'%Y.%m.%d')
225+ xvfb-run poetry run python scripts/build.py --os android --version ${{ github.ref_name }} --automation
226+
227+ - name : Upload artifact
228+ uses : actions/upload-artifact@v4
229+ with :
230+ name : android-assets-${{ matrix.platform }}
231+ path : ${{ github.workspace }}/dist/carveracontroller-community-*.apk
232+ retention-days : 2
233+
168234 publish-release :
169235 needs : [ build-windows-artifacts, build-macos-artifacts, build-linux-artifacts ]
170236 runs-on : ubuntu-latest
@@ -183,3 +249,4 @@ jobs:
183249 windows-assets-*/carveracontroller-community-*-windows-x64.exe
184250 macos-assets-*/carveracontroller-community-*.dmg
185251 linux-assets-*/carveracontroller-community-*.appimage
252+ android-assets-*/carveracontroller-community-*.apk
0 commit comments