Use Ruby Gemfile (bundle) to optimize pod install times

This commit is contained in:
Marc Rousavy
2021-03-11 19:08:51 +01:00
parent 9cbb5ad68e
commit 1f08a44100
4 changed files with 114 additions and 7 deletions

View File

@@ -44,6 +44,13 @@ jobs:
- name: Install node_modules for example/
run: yarn install --frozen-lockfile --cwd ..
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
working-directory: example/ios
- name: Restore Pods cache
uses: actions/cache@v2
with:
@@ -55,7 +62,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
run: pod install # TODO: Optimize "pod install" step (see https://guides.cocoapods.org/plugins/optimising-ci-times.html)
run: bundle exec pod check || bundle exec pod install
- name: Build App
run: "xcodebuild \
-workspace VisionCameraExample.xcworkspace \