mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-15 15:36:01 +00:00
45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
name: Build Android Debug
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "Build" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Debug APK
|
|
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: 'temurin'
|
|
cache: gradle
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --legacy-peer-deps
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x android/gradlew
|
|
|
|
- name: Build Debug APK
|
|
working-directory: android
|
|
# assembleDebug automatically uses a standard android debug key
|
|
run: ./gradlew :app:assembleDebug
|
|
|
|
- name: Upload Debug APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app-debug
|
|
path: android/app/build/outputs/apk/debug/*.apk
|