Skip to content

Commit

Permalink
Update Main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira committed Jul 10, 2024
1 parent 6614c8b commit 47a8d78
Showing 1 changed file with 69 additions and 69 deletions.
138 changes: 69 additions & 69 deletions .github/workflows/Main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Multiplatform Main

on:
push:
branches:
branches:
- main
paths-ignore:
- '**.md'
Expand All @@ -13,74 +13,74 @@ jobs:
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: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable

- name: Build with Gradle
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew testReleaseUnitTest jvmTest assembleRelease :app:packageDmg linkReleaseFrameworkIosSimulatorArm64 -Pdev

- name: Verify database migration
run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration

- name: Build iOS
run: xcodebuild build -configuration Release -project ./iosApp/MonsterCompendium.xcodeproj -scheme MonsterCompendium CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

- 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]
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 an APK
uses: actions/[email protected]
with:
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: 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
path: app/build/outputs/bundle/release/app-release.aab
- 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: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable

- name: Build with Gradle
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew testReleaseUnitTest jvmTest bundleRelease :app:packageDmg linkReleaseFrameworkIosSimulatorArm64

- name: Verify database migration
run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration

- name: Build iOS
run: xcodebuild build -configuration Release -project ./iosApp/MonsterCompendium.xcodeproj -scheme MonsterCompendium CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

- name: Generate Dev Apk
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew assembleRelease -Pdev

- 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 an APK
uses: actions/[email protected]
with:
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: 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
path: app/build/outputs/bundle/release/app-release.aab

ubuntu-desktop-distribution:
name: Ubuntu Desktop Distribution
Expand Down

0 comments on commit 47a8d78

Please sign in to comment.