Skip to content

Commit 30ed6f1

Browse files
authored
Create android.yml
1 parent a6591aa commit 30ed6f1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/android.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: set up JDK
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
cache: gradle
20+
21+
- name: Grant execute permission for gradlew
22+
run: chmod +x gradlew
23+
24+
- name: Build Debug
25+
run: ./gradlew assembleUniversalDebug
26+
27+
- name: Build Release
28+
run: ./gradlew assembleUniversalRelease
29+
30+
- name: Upload a Build Artifact
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: rvxp-ci-debug-apk
34+
path: app/build/outputs/apk/universal/debug
35+
36+
- name: Upload a Build Artifact
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: rvxp-ci-release-apk
40+
path: app/build/outputs/apk/universal/release

0 commit comments

Comments
 (0)