-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup compose desktop dmg distribution (#289)
* Adjust app build.gradle * Setup compose desktop dmg distribution * Update ci cd * Add windows desktop distribution * Add windows desktop distribution * Add windows desktop distribution * Add desktop distribution * Fix deb folder path
- Loading branch information
1 parent
06353fe
commit 1324397
Showing
4 changed files
with
164 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Android Main CI | ||
name: Multiplatform Main | ||
|
||
on: | ||
push: | ||
|
@@ -9,36 +9,30 @@ on: | |
- 'media/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
multiplatform-build: | ||
name: Multiplatform Build | ||
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 assembleRelease testReleaseUnitTest jvmTest -Pdev | ||
run: ./gradlew testReleaseUnitTest jvmTest assembleRelease :app:packageDmg linkReleaseFrameworkIosSimulatorArm64 -Pdev | ||
|
||
- name: Verify database migration | ||
run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration | ||
|
||
- name: Generate AAB | ||
env: | ||
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} | ||
run: ./gradlew bundleRelease | ||
|
||
- name: Upload the test report | ||
if: failure() | ||
uses: actions/[email protected] | ||
|
@@ -48,21 +42,81 @@ jobs: | |
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 an APK | ||
uses: actions/[email protected] | ||
with: | ||
name: app-dev-release.apk | ||
name: app-dev-release-apk | ||
path: app/build/outputs/apk/release/app-dev-release.apk | ||
|
||
- name: Upload an APK metadata JSON | ||
uses: actions/[email protected] | ||
with: | ||
name: output-metadata.json | ||
name: app-output-metadata-json | ||
path: app/build/outputs/apk/release/output-metadata.json | ||
|
||
- name: Upload an AAB | ||
uses: actions/[email protected] | ||
with: | ||
name: app-release.aab | ||
name: app-release-aab | ||
path: app/build/outputs/bundle/release/app-release.aab | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Android PR CI | ||
name: Multiplatform PR | ||
|
||
on: | ||
pull_request: | ||
|
@@ -7,8 +7,9 @@ on: | |
- 'media/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
multiplatform-build: | ||
name: Multiplatform Build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
|
@@ -25,7 +26,7 @@ jobs: | |
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew assembleDebug testDebugUnitTest jvmTest | ||
run: ./gradlew testDebugUnitTest jvmTest assembleDebug :app:packageDmg linkDebugFrameworkIosSimulatorArm64 | ||
|
||
- name: Verify database migration | ||
run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration | ||
|
@@ -39,15 +40,75 @@ jobs: | |
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 an APK | ||
uses: actions/[email protected] | ||
with: | ||
name: app-debug.apk | ||
name: app-debug-apk | ||
path: app/build/outputs/apk/debug/app-debug.apk | ||
|
||
- name: Upload an APK metadata JSON | ||
uses: actions/[email protected] | ||
with: | ||
name: output-metadata.json | ||
name: app-output-metadata-json | ||
path: app/build/outputs/apk/debug/output-metadata.json | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters