Skip to content

Commit 86a0f3f

Browse files
committed
ci: change cache keys for ios builds
1 parent 628df24 commit 86a0f3f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build-templates.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ jobs:
213213
path: |
214214
${{ env.work_dir }}/**/ios/Pods
215215
${{ env.work_dir }}/**/ios/Podfile.lock
216-
key: ${{ runner.os }}-library-cocoapods-${{ env.work_dir }}-${{ hashFiles(format('{0}/**/yarn.lock', env.work_dir)) }}
216+
key: ${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/**/Podfile', env.work_dir)) }}-${{ hashFiles(format('{0}/**/yarn.lock', env.work_dir)) }}
217217
restore-keys: |
218-
${{ runner.os }}-library-cocoapods-${{ env.work_dir }}-
218+
${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/**/Podfile', env.work_dir)) }}-
219+
${{ runner.os }}-library-cocoapods-
219220
220221
- name: Install cocoapods
221222
if: steps.library-cocoapods-cache.outputs.cache-hit != 'true' && env.ios_build == 1
@@ -231,9 +232,10 @@ jobs:
231232
with:
232233
path: |
233234
~/Library/Developer/Xcode/DerivedData
234-
key: ${{ runner.os }}-library-xcode-derived-data-${{ env.work_dir }}-${{ hashFiles(format('{0}/**/yarn.lock', env.work_dir)) }}
235+
key: ${{ runner.os }}-library-xcode-derived-data-${{ hashFiles(format('{0}/**/Podfile', env.work_dir)) }}-${{ hashFiles(format('{0}/**/yarn.lock', env.work_dir)) }}
235236
restore-keys: |
236-
${{ runner.os }}-library-xcode-derived-data-${{ env.work_dir }}-
237+
${{ runner.os }}-library-xcode-derived-data-${{ hashFiles(format('{0}/**/Podfile', env.work_dir)) }}-
238+
${{ runner.os }}-library-xcode-derived-data-
237239
238240
- name: Build example (iOS)
239241
if: env.ios_build == 1

0 commit comments

Comments
 (0)