forked from tianma8023/XposedSmsCode
-
Notifications
You must be signed in to change notification settings - Fork 13
77 lines (74 loc) · 2.06 KB
/
Copy pathci.yml
File metadata and controls
77 lines (74 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- beta
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
GRADLE_OPTS: -Dorg.gradle.warning.mode=all
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "26"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: false
allow-snapshot-wrappers: true
- name: Build and test project
run: >
./gradlew
--warning-mode all
:core:check
:runtime:check
:app:check
:app:compileGithubDebugAndroidTestKotlin
:app:compilePlayDebugAndroidTestKotlin
:core:compilePlayDebugUnitTestKotlin
:core:generatePlayDebugUnitTestStubRFile
:runtime:compileDebugAndroidTestKotlin
:app:assembleGithubDebug
-PbuildSplits
- name: Write build summary
if: always()
run: |
{
echo "## Debug APK summary"
echo ""
echo "| File | Size |"
echo "| --- | --- |"
while IFS= read -r apk; do
if [ ! -f "$apk" ]; then
continue
fi
size=$(du -h "$apk" | awk '{print $1}')
name=$(basename "$apk")
echo "| $name | $size |"
done < <(find app/build/outputs/apk -path '*/debug/*.apk' | sort)
} >> "$GITHUB_STEP_SUMMARY"
- name: Upload Debug APKs
if: always()
uses: actions/upload-artifact@v7
with:
name: XposedSmsCode-debug-apks
path: app/build/outputs/apk/**/debug/*.apk
- name: Upload Kover Report
if: always()
uses: actions/upload-artifact@v7
with:
name: kover-report
path: app/build/reports/kover/**