Skip to content

Commit 1533a61

Browse files
committed
Add GitHub Actions workflow for Android build and artifact upload
1 parent 455f84a commit 1533a61

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Android Build
2+
3+
on:
4+
push:
5+
branches:
6+
- feature/mx-like-external-player
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'temurin'
20+
java-version: 17
21+
cache: gradle
22+
23+
- name: Download Android SDK command-line tools
24+
uses: android-actions/setup-android@v2
25+
with:
26+
api-level: 33
27+
target: android-33
28+
arch: x64
29+
cache: true
30+
31+
- name: Grant execute permission for gradlew
32+
run: chmod +x gradlew
33+
34+
- name: Build Debug APK
35+
run: ./gradlew assembleDebug
36+
37+
- name: Upload APK artifact
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: NewPipe-ExternalPlayer-APK
41+
path: external-player/build/outputs/apk/debug/external-player-debug.apk

0 commit comments

Comments
 (0)