chore(mobile): add Cocoapods to mise (#30722)

* chore(mobile): add Cocoapods to mise

* Use new mise setup in CI
This commit is contained in:
Adam Gastineau 2026-08-12 04:53:14 -07:00 committed by GitHub
parent 0344c61e4c
commit 610bcfa6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 14 deletions

View file

@ -225,6 +225,13 @@ jobs:
github_token: ${{ steps.token.outputs.token }} github_token: ${{ steps.token.outputs.token }}
working_directory: ./mobile working_directory: ./mobile
- name: Setup Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: ./mobile/ios
- name: Install dependencies - name: Install dependencies
run: mise //mobile:install:ci run: mise //mobile:install:ci
@ -235,18 +242,6 @@ jobs:
working-directory: ./mobile working-directory: ./mobile
run: flutter build ios --config-only --no-codesign run: flutter build ios --config-only --no-codesign
- name: Setup Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: ./mobile/ios
- name: Install CocoaPods dependencies
working-directory: ./mobile/ios
run: |
pod install
- name: Create API Key - name: Create API Key
env: env:
API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }} API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}

View file

@ -29,7 +29,7 @@ sources = [
] ]
outputs = { auto = true } outputs = { auto = true }
run = [ run = [
"dart run build_runner build", "dart run build_runner build",
"dart format lib/routing/router.gr.dart", "dart format lib/routing/router.gr.dart",
] ]
depends = ["//:open-api-dart"] depends = ["//:open-api-dart"]
@ -99,7 +99,11 @@ run = "dart run drift_dev make-migrations"
alias = "install" alias = "install"
description = "Install flutter dependencies" description = "Install flutter dependencies"
depends = ["//:open-api-dart"] depends = ["//:open-api-dart"]
run = "flutter pub get" run = [
# This receives passed `--enforce-lockfile` args
"flutter pub get",
{ task = "install:ios" },
]
[tasks."install:ci"] [tasks."install:ci"]
description = "Install flutter dependencies in CI" description = "Install flutter dependencies in CI"
@ -132,6 +136,19 @@ run = [
] ]
wait_for = ["//:i18n:format-fix"] wait_for = ["//:i18n:format-fix"]
[tasks."install:ios"]
description = "Install CocoaPods dependencies"
hide = true
sources = ["ios/Podfile", "ios/Podfile.lock", ".flutter-plugin-dependencies"]
outputs = ["ios/Pods/Manifest.lock"]
run = '''
echo "Running pod install"
if [ "$(uname)" != "Darwin" ]; then
exit 0
fi
cd ios && pod install
'''
[tasks."analyze:dart"] [tasks."analyze:dart"]
description = "Run Dart analysis" description = "Run Dart analysis"
hide = true hide = true