File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on :
4+ push :
5+ branches : [ master, elastic-curran ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
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+ cache : gradle
25+
26+ - name : Grant execute permission for gradlew
27+ run : chmod +x gradlew
28+
29+ - name : Build with Gradle
30+ run : ./gradlew assembleRelease --stacktrace
31+
32+ - name : Run tests
33+ run : ./gradlew test --stacktrace
34+
35+ - name : Upload APK
36+ uses : actions/upload-artifact@v4
37+ with :
38+ name : app-release
39+ path : app/build/outputs/apk/release/*.apk
40+ retention-days : 7
41+
42+ - name : Build summary
43+ run : |
44+ echo "### Build Summary :rocket:" >> $GITHUB_STEP_SUMMARY
45+ echo "" >> $GITHUB_STEP_SUMMARY
46+ echo "- **Status**: ✅ Success" >> $GITHUB_STEP_SUMMARY
47+ echo "- **APK Location**: \`app/build/outputs/apk/release/\`" >> $GITHUB_STEP_SUMMARY
48+ ls -lh app/build/outputs/apk/release/*.apk >> $GITHUB_STEP_SUMMARY || true
You can’t perform that action at this time.
0 commit comments