Skip to content

Commit d1aaa84

Browse files
committed
Add Android CI workflow
1 parent 1b1e6e5 commit d1aaa84

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build debug APK
27+
run: ./gradlew assembleDebug --no-daemon
28+
29+
- name: Upload APK
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: app-debug
33+
path: app/build/outputs/apk/debug/*.apk

0 commit comments

Comments
 (0)