Skip to content

Workflow file for this run

#file: noinspection SpellCheckingInspection
name: Generate APK Debug
on:
push:
branches:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"
workflow_dispatch:
defaults:
run:
working-directory: Android
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: "temurin"
- name: Set up Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-includes: |
caches
notifications
jdks
${{ github.workspace }}/.gradle/configuration-cache
- name: Build Debug APK
run: |
chmod +x ./gradlew
cd ./../Website
npm install --force
npm run web:dev-app
cd ../Android
./gradlew app:assembleDefaultDebug
- name: Upload MMRL-arm64-v8a-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-arm64-v8a-debug
path: app/default/debug/*-arm64-v8a-debug.apk
- name: Upload MMRL-armeabi-v7a-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-armeabi-v7a-debug
path: app/default/debug/*-armeabi-v7a-debug.apk
- name: Upload MMRL-universal-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-universal-debug
path: app/default/debug/*-universal-debug.apk
- name: Upload MMRL-x86-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-x86-debug
path: app/default/debug/*-x86-debug.apk
- name: Upload MMRL-x86_64-debug
uses: actions/upload-artifact@v3
with:
name: MMRL-x86_64-debug
path: app/default/debug/*-x86_64-debug.apk