Skip to content

Commit

Permalink
Build sample on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Dec 17, 2023
1 parent 2d8f799 commit f77b7fc
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,84 @@ jobs:
with:
name: error-report
path: build-reports.zip


build-android-multiplatform-sample:
name: Build Android Multiplatform Sample
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3

- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true

- name: Build Android Sample
run: ./gradlew :sample:androidApp:assembleRelease

build-android-sample:
name: Build Android Sample
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3

- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true

- name: Build Android Sample
run: ./gradlew :sampleandroid:assembleRelease

build-desktop-app:
name: Build Desktop App
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3

- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true

- name: Build Desktop App
run: ./gradlew :sample:desktopApp:packageDistributionForCurrentOS

build-ios-sample:
name: Build iOS Sample
runs-on: macos-latest
needs: [test]
steps:
- uses: actions/checkout@v3

- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true

- name: Build iOS Sample
run: xcodebuild -project sample/iosApp/iosApp.xcodeproj -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 15 Pro' build
4 changes: 2 additions & 2 deletions sample/iosApp/iosApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = 2LS7B6UW98;
DEVELOPMENT_TEAM = Q7CUB3RNAK;
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -370,7 +370,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = 2LS7B6UW98;
DEVELOPMENT_TEAM = Q7CUB3RNAK;
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down
Binary file not shown.

0 comments on commit f77b7fc

Please sign in to comment.