@@ -232,10 +232,9 @@ jobs:
232
232
with :
233
233
xcode-version : ${{ env.XCODE_VERSION }}
234
234
235
- - name : Restore cocoapods
235
+ - name : Cache cocoapods
236
236
if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1
237
- id : library-cocoapods-cache
238
- uses : actions/cache/restore@v4
237
+ uses : actions/cache@v4
239
238
with :
240
239
path : |
241
240
${{ env.work_dir }}/**/ios/Pods
@@ -246,22 +245,16 @@ jobs:
246
245
${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-
247
246
${{ runner.os }}-library-cocoapods-
248
247
249
- - name : Install cocoapods
250
- if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
248
+
249
+ - name : Update cocoapod repo
250
+ if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1
251
251
working-directory : ${{ env.work_dir }}
252
252
run : |
253
253
cd example
254
254
bundle install
255
- bundle exec pod install --project-directory=ios
256
-
257
- - name : Cache cocoapods
258
- if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
259
- uses : actions/cache/save@v4
260
- with :
261
- path : |
262
- ${{ env.work_dir }}/**/ios/Pods
263
- ${{ env.work_dir }}/**/ios/Podfile.lock
264
- key : ${{ steps.library-cocoapods-cache.outputs.cache-primary-key }}
255
+ cd ios
256
+ bundle exec pod deintegrate
257
+ bundle exec pod repo update --verbose
265
258
266
259
- name : Build example (iOS)
267
260
if : env.ios_build == 1
0 commit comments