Skip to content

Commit 08c5b8a

Browse files
committed
fix: setup Ruby environment and install dependencies for iOS build; add .ruby-version file
1 parent 0bddecc commit 08c5b8a

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,26 @@ jobs:
153153
with:
154154
xcode-version: ${{ env.XCODE_VERSION }}
155155

156-
- name: Install cocoapods
157-
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
156+
- name: Setup Ruby
157+
if: env.turbo_cache_hit != 1
158+
uses: ruby/setup-ruby@v1
159+
with:
160+
ruby-version-file: example/.ruby-version
161+
bundler-cache: false
162+
working-directory: example
163+
164+
- name: Update Bundler and install dependencies
165+
if: env.turbo_cache_hit != 1
158166
run: |
159167
cd example
168+
gem install bundler
169+
rm -f Gemfile.lock
160170
bundle install
171+
172+
- name: Install cocoapods
173+
if: env.turbo_cache_hit != 1
174+
run: |
175+
cd example
161176
bundle exec pod repo update --verbose
162177
bundle exec pod install --project-directory=ios
163178

example/.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.6

0 commit comments

Comments
 (0)