Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build sample app #138

Merged
merged 12 commits into from
Aug 13, 2024
Merged

ci: build sample app #138

merged 12 commits into from
Aug 13, 2024

Conversation

mrehan27
Copy link
Contributor

@mrehan27 mrehan27 commented Aug 9, 2024

part of MBL-420

Changes

  • Updated github actions to build sample apps for every pull request created

@mrehan27 mrehan27 self-assigned this Aug 9, 2024
Copy link

github-actions bot commented Aug 9, 2024

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


  • amiapp_flutter: 138.12.0 (28726037)

@mrehan27 mrehan27 force-pushed the rehan/mbl-420-fastlane-updates branch from 8403040 to 59557c4 Compare August 9, 2024 15:57
@mrehan27 mrehan27 force-pushed the rehan/mbl-420-ci-updates branch from c0db4d5 to fc4263f Compare August 9, 2024 15:58
@mrehan27 mrehan27 requested a review from a team August 9, 2024 16:03
.github/actions/setup-ios/action.yml Outdated Show resolved Hide resolved
.github/workflows/build-sample-apps.yml Outdated Show resolved Hide resolved
Comment on lines 140 to 156
- name: Setup Android environment for sample app
uses: ./.github/actions/setup-android

- name: Build and upload Android app via Fastlane
uses: maierj/[email protected]
with:
subdirectory: apps/${{ matrix.sample-app }}
lane: 'android build'
env:
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}

- name: Setup iOS environment for sample app
uses: ./.github/actions/setup-ios
with:
xcode-version: ${{ env.XCODE_VERSION }}

- name: Cache CocoaPods downloaded dependencies for faster builds in the future
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of compiling android and ios apps inside of the same job, I suggest separating them into their own job so they can run in parallel. Could speedup the CI running.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea as this will not only speed up the process but also prevent the other app not to fail if one of them is not compiling. But the changes might be larger, I'll do them in another PR later after trying it out for React Native apps first.

Copy link
Collaborator

@Shahroz16 Shahroz16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good as long as we can verify the release as a trigger

.github/workflows/build-sample-apps.yml Outdated Show resolved Hide resolved
Base automatically changed from rehan/mbl-420-fastlane-updates to main August 13, 2024 11:21
@mrehan27 mrehan27 requested a review from Shahroz16 August 13, 2024 13:14
@mrehan27 mrehan27 merged commit 97d92e7 into main Aug 13, 2024
5 of 6 checks passed
@mrehan27 mrehan27 deleted the rehan/mbl-420-ci-updates branch August 13, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants