Push and pull request triggers queue runs that sit forever with no runner. Keep the job and allow manual dispatch only so it can be turned back on later.
35 lines
863 B
YAML
35 lines
863 B
YAML
name: CI
|
|
|
|
# Auto-build off until an Actions runner is available.
|
|
# Restore push and pull_request triggers when a runner is registered.
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Unit tests
|
|
run: ./gradlew :app:testProdDebugUnitTest --stacktrace
|
|
|
|
- name: Assemble debug APK
|
|
run: ./gradlew :app:assembleProdDebug --stacktrace
|
|
|
|
- name: Upload debug APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hesychia-prod-debug
|
|
path: app/build/outputs/apk/prod/debug/*.apk
|
|
if-no-files-found: error
|