Skip to content

Commit 7f022fd

Browse files
Setup build CI
1 parent 15b8d29 commit 7f022fd

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "ci" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: true
18+
19+
- name: Set up Android NDK
20+
uses: nttld/setup-ndk@v1
21+
with:
22+
ndk-version: r28b
23+
24+
- name: Build proot
25+
run: |
26+
thirdparty/proot/build.sh
27+
28+
- name: Set up JDK
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: 17
32+
distribution: temurin
33+
34+
- name: Build APK
35+
run: |
36+
./gradlew assembleDebug
37+
38+
- name: Upload APK
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: app-debug
42+
path: app/build/outputs/apk/debug/*.apk

0 commit comments

Comments
 (0)