Skip to content

Commit

Permalink
ci: ios scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
borgoat committed Dec 21, 2024
1 parent 3b95420 commit d2a1aa6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ios/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

# CI/CD for Flutter
# From https://docs.flutter.dev/deployment/cd#post-clone-script

# Fail this script if any subcommand fails.
set -e

# The default execution directory of this script is the ci_scripts directory.
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.

# Install Flutter using git.
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
export PATH="$PATH:$HOME/flutter/bin"

# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
flutter precache --ios

# Install Flutter dependencies.
flutter pub get

# Install CocoaPods using Homebrew.
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
brew install cocoapods

# Install CocoaPods dependencies.
cd ios && pod install # run `pod install` in the `ios` directory.

exit 0

0 comments on commit d2a1aa6

Please sign in to comment.