2020-06-23 14:16:58 +02:00
|
|
|
name: Build
|
2020-07-20 20:55:16 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- data
|
|
|
|
- gh-pages
|
|
|
|
pull_request:
|
|
|
|
branches-ignore:
|
|
|
|
- data
|
|
|
|
- gh-pages
|
2020-06-23 14:16:58 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
# Build job. Builds app for Android with Buildozer
|
|
|
|
build-android:
|
|
|
|
name: Build for Android
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-07-20 20:55:16 +02:00
|
|
|
with:
|
|
|
|
path: master
|
2020-06-23 14:16:58 +02:00
|
|
|
|
|
|
|
- name: Build with Buildozer
|
2020-07-20 20:55:16 +02:00
|
|
|
uses: ./master # REPLACE WITH ArtemSBulgakov/buildozer-action@v1
|
2020-06-23 14:16:58 +02:00
|
|
|
id: buildozer
|
|
|
|
with:
|
2020-07-20 20:55:16 +02:00
|
|
|
repository_root: master
|
2020-06-23 14:16:58 +02:00
|
|
|
workdir: test_app
|
|
|
|
buildozer_version: stable
|
|
|
|
|
2020-07-20 20:55:16 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: data
|
|
|
|
ref: data # Branch name
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
2020-06-23 14:16:58 +02:00
|
|
|
with:
|
2020-07-20 20:55:16 +02:00
|
|
|
python-version: 3.7
|
|
|
|
architecture: x64
|
|
|
|
|
|
|
|
- name: Push binary to data branch
|
|
|
|
run: python master/.ci/move_binary.py "${{ steps.buildozer.outputs.filename }}" master data bin
|