2025-01-18 20:09:58 -08:00
|
|
|
name: Auto Builder
|
|
|
|
run-name: ${{ github.actor }} started auto-build.
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build & Publish
|
2025-01-20 22:42:45 -08:00
|
|
|
runs-on: docker
|
2025-01-18 20:09:58 -08:00
|
|
|
|
|
|
|
steps:
|
2025-01-20 22:42:45 -08:00
|
|
|
- uses: actions/checkout@v4.1.5
|
|
|
|
- uses: https://github.com/actions/setup-java@v4.2.1
|
2025-01-20 22:29:07 -08:00
|
|
|
with:
|
2025-01-20 22:42:45 -08:00
|
|
|
java-version: '22'
|
|
|
|
distribution: 'temurin'
|
2025-01-18 20:20:46 -08:00
|
|
|
- uses: https://github.com/fwilhe2/setup-kotlin@main
|
2025-01-18 20:25:23 -08:00
|
|
|
- uses: https://github.com/android-actions/setup-android@v3
|
2025-01-18 20:30:04 -08:00
|
|
|
with:
|
2025-01-18 20:51:13 -08:00
|
|
|
packages: 'platform-tools'
|
2025-01-18 20:09:58 -08:00
|
|
|
- name: Allowing permissions
|
|
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build
|
|
|
|
run: ./gradlew clean assembleDebug --stacktrace
|
|
|
|
- name: Stop daemon
|
|
|
|
run: ./gradlew --stop
|
|
|
|
- name: Moving built APK
|
|
|
|
run: mv ./app/build/outputs/apk/debug/app-debug.apk ./DiceApp-autobuild.apk
|
|
|
|
- name: Creating checksum
|
|
|
|
run: md5sum DiceApp-autobuild.apk > md5sum.md5
|
|
|
|
- name: Verifying checksum
|
|
|
|
run: md5sum -c md5sum.md5
|
|
|
|
- name: Upload APK
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: autobuild
|
|
|
|
path: |
|
|
|
|
DiceApp-autobuild.apk
|
|
|
|
md5sum.md5
|
|
|
|
compression-level: 9
|