APK build #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: APK build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 0 1,15 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# used to cache dependencies with a timeout | |
- name: Get Date | |
id: get-date | |
run: | | |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")" | |
shell: bash | |
- name: Cache Buildozer global directory | |
uses: actions/cache@v2 | |
with: | |
path: .buildozer_global | |
key: buildozer-global-${{ hashFiles('buildozer.spec') }} # Replace with your path | |
- uses: actions/cache@v2 | |
with: | |
path: .buildozer | |
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('buildozer.spec') }} | |
- name: Build with Buildozer | |
uses: ArtemSBulgakov/buildozer-action@v1 | |
id: buildozer | |
with: | |
command: buildozer android debug | |
buildozer_version: master | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: package | |
path: ${{ steps.buildozer.outputs.filename }} |