-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #360 from verdigado/187-cicd-ios-builds
187,190: CI/CD build and deliver ios
- Loading branch information
Showing
27 changed files
with
935 additions
and
267 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
description: Restores and saves the cocoa pods cache. | ||
steps: | ||
- restore_cache: | ||
name: Restore CocoaPods Cache | ||
keys: | ||
- 1-cocoapods-{{ arch }}-{{ checksum "ios/Podfile.lock" }} | ||
- run: | ||
name: Install CocoaPods | ||
command: bundle exec pod install | ||
working_directory: ios | ||
- save_cache: | ||
name: Save CocoaPods Cache | ||
key: 1-cocoapods-{{ arch }}-{{ checksum "ios/Podfile.lock" }} | ||
paths: | ||
- ~/Library/Caches/CocoaPods/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
macos: | ||
xcode: 16.1.0 | ||
environment: | ||
FASTLANE_SKIP_UPDATE_CHECK: true | ||
steps: | ||
- checkout | ||
- prepare_workspace | ||
- run: | ||
name: Install rosetta | ||
command: softwareupdate --install-rosetta --agree-to-license | ||
- restore_environment_variables | ||
- install_flutter: | ||
precache: ios | ||
- prepare_project | ||
- install_fastlane: | ||
directory: ios | ||
- install_cocoapods | ||
- run: | ||
name: '[FL] Build' | ||
command: bundle exec fastlane ios build version_name:${NEW_VERSION_NAME} version_code:${NEW_VERSION_CODE} | ||
working_directory: ios | ||
- store_artifacts: | ||
path: app-release.ipa | ||
- persist_to_workspace: | ||
root: ~/ | ||
paths: | ||
- app-release.ipa |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
parameters: | ||
production_delivery: | ||
description: Whether to deliver the build to production. | ||
type: boolean | ||
macos: | ||
xcode: 16.1.0 | ||
environment: | ||
FASTLANE_SKIP_UPDATE_CHECK: true | ||
steps: | ||
- checkout | ||
- prepare_workspace | ||
- restore_environment_variables | ||
- install_node_modules | ||
- install_fastlane: | ||
directory: ios | ||
# - when: | ||
# condition: << parameters.production_delivery >> | ||
# steps: | ||
# - run: | ||
# name: '[FL] Production Upload' | ||
# command: bundle exec fastlane ios production_upload ipa_path:attached_workspace/app-release.ipa version_name:${NEW_VERSION_NAME} | ||
# working_directory: ios | ||
- unless: | ||
condition: << parameters.production_delivery >> | ||
steps: | ||
- run: | ||
name: '[FL] Beta Upload (TestFlight)' | ||
command: bundle exec fastlane ios beta_upload ipa_path:attached_workspace/app-release.ipa | ||
working_directory: ios | ||
- run: | ||
name: Create Github Release | ||
command: yarn --silent github-release create ios ${NEW_VERSION_NAME} ${NEW_VERSION_CODE} --production-delivery << parameters.production_delivery >> --github-private-key ${GITHUB_PRIVATE_KEY} --owner ${CIRCLE_PROJECT_USERNAME} --repo ${CIRCLE_PROJECT_REPONAME} --release-notes "Release v${NEW_VERSION_NAME}+${NEW_VERSION_CODE}" | ||
working_directory: tools |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
when: | ||
and: | ||
- << pipeline.parameters.api_triggered >> | ||
- equal: [<< pipeline.parameters.workflow_type >>, beta_delivery] | ||
jobs: | ||
- bump_version: | ||
context: | ||
- github | ||
prepare_delivery: true | ||
|
||
- build_android: | ||
# context: | ||
# - app_signing_android | ||
requires: | ||
- bump_version | ||
- deliver_android: | ||
production_delivery: false | ||
context: | ||
- github | ||
# - gruene_google_playstore | ||
requires: | ||
- build_android | ||
|
||
- build_ios: | ||
context: | ||
- app_signing_ios | ||
requires: | ||
- bump_version | ||
- deliver_ios: | ||
production_delivery: false | ||
context: | ||
- github | ||
- gruene_apple_appstore | ||
requires: | ||
- build_ios |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,8 +1,8 @@ | ||
{ | ||
"FSharp.suggestGitignore": false, | ||
"cSpell.words": [ | ||
"gruene", | ||
"housenumber" | ||
], | ||
"files.eol": "\n" | ||
{ | ||
"FSharp.suggestGitignore": false, | ||
"cSpell.words": [ | ||
"gruene", | ||
"housenumber" | ||
], | ||
"files.eol": "\n" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source "https://rubygems.org" | ||
|
||
# https://github.com/fastlane/fastlane/issues/21794 | ||
gem "rb-readline" | ||
gem "fastlane" | ||
gem "cocoapods" | ||
|
Oops, something went wrong.