File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on :
4+ push :
5+ branches : [ "**" ]
6+ paths-ignore :
7+ - ' **/*.md'
8+ workflow_dispatch :
9+
10+ jobs :
11+ init :
12+ name : Init
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ build_release_apk :
19+ name : Build App Release APK
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Check out repository
24+ uses : actions/checkout@v4
25+
26+ - name : Set up JDK 17
27+ uses : actions/setup-java@v4
28+ with :
29+ java-version : ' 17'
30+ distribution : ' oracle'
31+ cache : gradle
32+
33+ - name : Grant execute permission for gradlew
34+ run : chmod +x gradlew
35+
36+ - name : Validate Gradle wrapper
37+ uses : gradle/actions/wrapper-validation@v4
38+
39+ - name : Build with Gradle (arm64-v8a)
40+ id : gradle_build_release_arm64
41+ run : ./gradlew assembleRelease
42+
43+ - name : Upload release apk (arm64-v8a)
44+ uses : actions/upload-artifact@v4
45+ with :
46+ name : app-arm64
47+ path : app/build/outputs/apk/release/app-arm64-v8a-release.apk
48+
49+ - name : Upload release apk (armeabi-v7a)
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : app-arm32
53+ path : app/build/outputs/apk/release/app-armeabi-v7a-release.apk
54+
55+ - name : Upload release apk (x86_64)
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : app-x86-64
59+ path : app/build/outputs/apk/release/app-x86_64-release.apk
60+
61+ - name : Upload release apk (x86)
62+ uses : actions/upload-artifact@v4
63+ with :
64+ name : app-x86
65+ path : app/build/outputs/apk/release/app-x86-release.apk
66+
67+ - name : List outputs
68+ run : tree -f app/build/outputs/release
You can’t perform that action at this time.
0 commit comments