Skip to content

https://github.com/miuix-kotlin-multiplatform/miuix :assembleDebug #36

https://github.com/miuix-kotlin-multiplatform/miuix :assembleDebug

https://github.com/miuix-kotlin-multiplatform/miuix :assembleDebug #36

Workflow file for this run

name: Build Android APK
run-name: ${{ github.event.inputs.repository }} ${{ github.event.inputs.subdir && format('[/{0}]', github.event.inputs.subdir) }} :${{ github.event.inputs.taskName }}
on:
workflow_dispatch:
inputs:
repository:
description: "Git repository URL"
required: true
default: "https://github.com/android/sunflower"
subdir:
description: "Relative subdirectory path if the project is nested"
required: false
default: ""
jdkVersion:
description: "OpenJDK version to use: 8 / 11 / 17 etc."
required: false
default: "17"
taskName:
description: "build.gradle task name"
required: false
default: "assembleDebug"
jobs:
build:
runs-on: ubuntu-latest # Android SDK is built into this image
steps:
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ github.event.inputs.jdkVersion }}
- name: Clone project
run: git clone --recurse-submodules --depth=1 ${{ github.event.inputs.repository }} workspace
- name: Build APK
working-directory: ./workspace/${{ github.event.inputs.subdir }}
run: |
if [ ! -f "gradlew" ]; then gradle wrapper; fi
chmod +x gradlew
./gradlew ${{ github.event.inputs.taskName }} --stacktrace
- name: Upload the APK artifact with 1 day retention
uses: actions/upload-artifact@v4
with:
path: workspace/**/*.apk
name: apk-archive
retention-days: 1