6767 xcode-version : latest-stable
6868
6969 - name : Restore cocoapods
70- if : env.turbo_cache_hit != 1
7170 id : cocoapods-cache
7271 uses : actions/cache/restore@v4
7372 with :
@@ -78,21 +77,30 @@ jobs:
7877 ${{ runner.os }}-cocoapods-
7978
8079 - name : Install cocoapods
81- if : env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
80+ if : steps.cocoapods-cache.outputs.cache-hit != 'true'
8281 run : |
8382 cd apps/example/ios
8483 pod install
8584 env :
8685 NO_FLIPPER : 1
8786
8887 - name : Cache cocoapods
89- if : env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
88+ if : steps.cocoapods-cache.outputs.cache-hit != 'true'
9089 uses : actions/cache/save@v4
9190 with :
9291 path : |
9392 **/ios/Pods
9493 key : ${{ steps.cocoapods-cache.outputs.cache-key }}
9594
95+ - name : Restore Xcode DerivedData
96+ uses : actions/cache/restore@v4
97+ id : derived-data-cache
98+ with :
99+ path : ~/Library/Developer/Xcode/DerivedData
100+ key : ${{ runner.os }}-derived-data-${{ hashFiles('ios/**', 'apps/example/ios/**', 'cpp/**', 'src/**') }}
101+ restore-keys : |
102+ ${{ runner.os }}-derived-data-
103+
96104 - name : Install Maestro CLI
97105 run : |
98106 curl -Ls "https://get.maestro.mobile.dev" | bash
@@ -104,6 +112,13 @@ jobs:
104112 - name : Run E2E tests
105113 run : yarn test:e2e:ios
106114
115+ - name : Cache Xcode DerivedData
116+ if : steps.derived-data-cache.outputs.cache-hit != 'true'
117+ uses : actions/cache/save@v4
118+ with :
119+ path : ~/Library/Developer/Xcode/DerivedData
120+ key : ${{ steps.derived-data-cache.outputs.cache-primary-key }}
121+
107122 - name : Upload test artifacts
108123 if : failure()
109124 uses : actions/upload-artifact@v4
0 commit comments