Files
lawnchair/.github/workflows/build_debug_apk.yml
2021-03-16 10:25:09 +01:00

48 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Build debug APK
on:
workflow_dispatch:
push:
branches:
- 11-dev
jobs:
build-debug-apk:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Check out repository
uses: actions/checkout@v2.3.4
with:
submodules: true
- name: Restore Gradle cache
uses: actions/cache@v2.1.4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Set up Java 11
uses: actions/setup-java@v1.4.3
with:
java-version: 11
- name: Grant execution permission to Gradle Wrapper
run: chmod +x gradlew
- name: Build debug APK
run: ./gradlew assembleLawnWithQuickstepDebug
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Lawnchair
path: build/outputs/apk/lawnWithQuickstep/debug/**.apk
- name: Save Workflow status as environment variable
uses: technote-space/workflow-conclusion-action@v2.1.5
- name: Send notification
uses: appleboy/telegram-action@v0.1.0
with:
to: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }}
token: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }}
document: build/outputs/apk/lawnWithQuickstep/debug/**.apk
args: |
Build ${{ github.run_id }} finished with status ${{ env.WORKFLOW_CONCLUSION }}.