mirror of
https://github.com/OMGeeky/Kivy-Shopping-List.git
synced 2025-12-30 08:13:47 +01:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: build
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
|
|
jobs:
|
|
# Build job. Builds app for Android with Buildozer test
|
|
build:
|
|
name: Build for Android
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# 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: /github/workspace/./.buildozer_global
|
|
key: buildozer-global-${{ hashFiles('src/buildozer.spec') }} # Replace with your path
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: /github/workspace/src/.buildozer
|
|
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('src/buildozer.spec') }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build with Buildozer
|
|
uses: ArtemSBulgakov/buildozer-action@v1
|
|
id: buildozer
|
|
with:
|
|
workdir: src
|
|
buildozer_version: stable
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: package
|
|
path: ${{ steps.buildozer.outputs.filename }}
|