43 lines
922 B
YAML
43 lines
922 B
YAML
name: Test Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
paths-ignore:
|
|
- 'metadata/**'
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
paths-ignore:
|
|
- 'metadata/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Apk
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cancel previous runs
|
|
uses: styfle/cancel-workflow-action@0.5.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup jdk-17
|
|
uses: actions/setup-java@main
|
|
with:
|
|
java-version: 17
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Assemble Debug
|
|
run: ./gradlew assembleDebug
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: apk-debug
|
|
path: app/build/outputs/apk/debug/**.apk |