mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +00:00
Create build-android.yml
created a workflow file specifically to build an Android APK
This commit is contained in:
parent
257818f736
commit
16c9c060a2
1 changed files with 34 additions and 0 deletions
34
.github/workflows/build-android.yml
vendored
Normal file
34
.github/workflows/build-android.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Build Android APK
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # Allows you to run it manually from the Actions tab
|
||||||
|
paths:
|
||||||
|
- 'composeApp/**'
|
||||||
|
- 'gradle/**'
|
||||||
|
- '*.gradle.kts'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-android:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'zulu'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
|
- name: Grant execute permission for gradlew
|
||||||
|
run: chmod +x gradlew
|
||||||
|
|
||||||
|
- name: Build Android Debug APK
|
||||||
|
run: ./gradlew :composeApp:assembleDebug
|
||||||
|
|
||||||
|
- name: Upload APK artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: app-debug
|
||||||
|
path: composeApp/build/outputs/apk/debug/*.apk
|
||||||
Loading…
Reference in a new issue