-
Notifications
You must be signed in to change notification settings - Fork 7
154 lines (124 loc) · 4.17 KB
/
Main.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: Multiplatform Main
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- 'media/**'
- 'content/**'
jobs:
multiplatform-build:
name: Android and MacOS Distribution
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew jvmTest testReleaseUnitTest assembleRelease bundleRelease :app:packageDmg
- name: Verify database migration
run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration
- name: Upload the test report
if: failure()
uses: actions/[email protected]
with:
name: TestReport
path: |
feature-monster-compendium/build/reports/tests
data/build/reports/tests
domain/build/reports/tests
- name: Upload Dmg
uses: actions/[email protected]
with:
name: MonsterCompendium-dmg
path: app/build/compose/binaries/main/dmg/*.dmg
- name: Upload APK
uses: actions/[email protected]
with:
name: app-release-apk
path: app/build/outputs/apk/release/app-release.apk
- name: Upload AAB
uses: actions/[email protected]
with:
name: app-release-aab
path: app/build/outputs/bundle/release/app-release.aab
- name: Upload APK metadata JSON
uses: actions/[email protected]
with:
name: app-output-metadata-json
path: app/build/outputs/apk/release/output-metadata.json
android-dev-distribution:
name: Android APK Dev Distribution
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate Dev Apk
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew assembleRelease -Pdev
- name: Upload Dev APK
uses: actions/[email protected]
with:
name: app-dev-release-apk
path: app/build/outputs/apk/release/app-dev-release.apk
ubuntu-desktop-distribution:
name: Ubuntu Desktop Distribution
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :app:packageDeb
- name: Upload Deb
uses: actions/[email protected]
with:
name: MonsterCompendium-deb
path: app/build/compose/binaries/main/deb/*.deb
windows-desktop-distribution:
name: Windows Desktop Distribution
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew :app:packageMsi
- name: Upload Msi
uses: actions/[email protected]
with:
name: MonsterCompendium-msi
path: app/build/compose/binaries/main/msi/*.msi