mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore(mobile): add Cocoapods to mise (#30722)
* chore(mobile): add Cocoapods to mise * Use new mise setup in CI
This commit is contained in:
parent
0344c61e4c
commit
610bcfa6d0
2 changed files with 26 additions and 14 deletions
19
.github/workflows/build-mobile.yml
vendored
19
.github/workflows/build-mobile.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue