Skip to content

CI

CI #19

Workflow file for this run

name: CI
on:
# push:
# branches:
# - develop
# paths-ignore:
# - '**.md'
# Dispatch or Manual triggers
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build app
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3
- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
java-version: 17
distribution: adopt
- name: Set up gradle
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3
- name: Build app
run: ./gradlew assembleDevPreview testDevPreviewUnitTest --stacktrace
- name: Upload APK
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: Komikku-${{ github.sha }}.apk
path: app/build/outputs/apk/dev/preview/app-dev-universal-preview.apk
retention-days: 1