Skip to content

Instantly share code, notes, and snippets.

@nilsreichardt
Created May 6, 2023 17:08
Show Gist options
  • Save nilsreichardt/5964f619c9979d79d54405c6bdd36d24 to your computer and use it in GitHub Desktop.
Save nilsreichardt/5964f619c9979d79d54405c6bdd36d24 to your computer and use it in GitHub Desktop.
The codemagic.yaml of the Flutter Counter app file for M2 vs M1 vs Mac Pro comparison
definitions:
environment_setup: &environment_setup
flutter: v3.7.12
xcode: 14.3
scripts:
- &install_dependencies
name: Install dependencies
script: flutter pub get
- &build_ipa
name: Build IPA
script: |
flutter build ipa \
--export-options-plist=/Users/builder/export_options.plist \
- &build_macos
name: Build macOS
script: |
flutter build macos
workflows:
counter-app-ios:
name: Counter App (iOS)
max_build_duration: 60
environment:
<<: *environment_setup
scripts:
- *install_dependencies
- *build_ipa
counter-app-ios-with-caching:
name: Counter App (iOS with caching)
max_build_duration: 60
environment:
<<: *environment_setup
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/Library/Caches/CocoaPods
scripts:
- *install_dependencies
- *build_ipa
counter-app-macos:
name: Counter App (macOS)
max_build_duration: 60
environment:
<<: *environment_setup
scripts:
- *install_dependencies
- *build_macos
counter-app-macos-with-caching:
name: Counter App (macOS with caching)
max_build_duration: 60
environment:
<<: *environment_setup
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/Library/Caches/CocoaPods
scripts:
- *install_dependencies
- *build_macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment