Skip to content

Commit 261f9f8

Browse files
mfazekasclaude
andcommitted
fix: include codegen files in CocoaPods cache
Include example/ios/build/generated in CocoaPods cache to fix missing codegen files when cache is restored. Also include yarn.lock in cache key to invalidate cache when npm dependencies change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9f27203 commit 261f9f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ jobs:
9797
with:
9898
path: |
9999
example/ios/Pods
100-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
100+
example/ios/build/generated
101+
key: ${{ runner.os }}-cocoapods-${{ hashFiles('yarn.lock') }}-${{ hashFiles('example/ios/Podfile.lock') }}
101102
restore-keys: |
103+
${{ runner.os }}-cocoapods-${{ hashFiles('yarn.lock') }}-
102104
${{ runner.os }}-cocoapods-
103105
104106
- name: Install CocoaPods
@@ -112,6 +114,7 @@ jobs:
112114
with:
113115
path: |
114116
example/ios/Pods
117+
example/ios/build/generated
115118
key: ${{ steps.cocoapods-cache.outputs.cache-primary-key }}
116119

117120
- name: Build example for iOS

0 commit comments

Comments
 (0)