Skip to content

Instantly share code, notes, and snippets.

@nilsreichardt
Created May 6, 2023 17:07
Show Gist options
  • Save nilsreichardt/83414aa1bc0fff55197d78a849c228b0 to your computer and use it in GitHub Desktop.
Save nilsreichardt/83414aa1bc0fff55197d78a849c228b0 to your computer and use it in GitHub Desktop.
The codemagic.yaml of the Sharezone app file for M2 vs M1 vs Mac Pro comparison
definitions:
environment_setup: &environment_setup
flutter: v3.7.12
xcode: 14.3
groups:
- ios-publishing
- certificate_credentials
scripts:
- &install_dependencies
name: Install dependencies
script: flutter pub get
- &ios_code_signing
name: iOS code signing
script: |
BUNDLE_ID=de.codingbrain.sharezone.app
keychain initialize
app-store-connect fetch-signing-files "$BUNDLE_ID" --type IOS_APP_ADHOC --create
keychain add-certificates
xcode-project use-profiles
- &macos_code_signing
name: iOS code signing
script: |
BUNDLE_ID=de.codingbrain.sharezone.app
keychain initialize
app-store-connect fetch-signing-files "$BUNDLE_ID" \
--platform IOS \
--type MAC_APP_STORE \
--strict-match-identifier \
--create
keychain add-certificates
xcode-project use-profiles
- &build_ipa
name: Build IPA
script: |
flutter build ipa \
--export-options-plist=/Users/builder/export_options.plist \
--flavor prod \
--target lib/main_prod.dart
- &build_macos
name: Build macOS
script: |
flutter build macos \
--target lib/main_prod.dart
workflows:
sharezone-app-ios:
name: Sharezone App (iOS)
max_build_duration: 60
environment:
<<: *environment_setup
working_directory: app
scripts:
- *ios_code_signing
- *install_dependencies
- *build_ipa
sharezone-app-ios-with-caching:
name: Sharezone App (iOS with caching)
max_build_duration: 60
environment:
<<: *environment_setup
working_directory: app
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/Library/Caches/CocoaPods
scripts:
- *ios_code_signing
- *install_dependencies
- *build_ipa
sharezone-app-macos:
name: Sharezone App (macOS)
max_build_duration: 60
environment:
<<: *environment_setup
working_directory: app
scripts:
- *macos_code_signing
- *install_dependencies
- *build_macos
sharezone-app-macos-with-caching:
name: Sharezone App (macOS with caching)
max_build_duration: 60
environment:
<<: *environment_setup
working_directory: app
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/Library/Caches/CocoaPods
scripts:
- *macos_code_signing
- *install_dependencies
- *build_macos
sharezone-unit-test:
name: Sharezone App
max_build_duration: 60
environment:
<<: *environment_setup
working_directory: app
scripts:
- *install_dependencies
- name: Run unit tests
script: flutter test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment