Skip to content

Commit 7d0a0ce

Browse files
committed
add workflow
1 parent f8231c9 commit 7d0a0ce

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
25+
- name: Install NDK
26+
run: echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "ndk;27.0.12077973"
27+
28+
- name: Build debug APKs
29+
run: ./gradlew assembleNonRootDebug assembleRootDebug
30+
31+
- name: Upload nonRoot debug APK
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: moonlight-nonroot-debug
35+
path: app/build/outputs/apk/nonRoot/debug/*.apk
36+
37+
- name: Upload root debug APK
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: moonlight-root-debug
41+
path: app/build/outputs/apk/root/debug/*.apk

0 commit comments

Comments
 (0)