17
17
uses : actions/cache/restore@v4
18
18
with :
19
19
path : packages/react-native/third-party/
20
- key : v1-ios-dependencies-${{ hashfiles('scripts/releases/ios-prebuilds /configuration.js') }}
20
+ key : v1-ios-dependencies-${{ hashfiles('scripts/releases/ios-prebuild /configuration.js') }}
21
21
enableCrossOsArchive : true
22
22
- name : Yarn Install
23
23
if : steps.restore-ios-prebuilds.outputs.cache-hit != 'true'
39
39
uses : actions/cache/save@v4
40
40
if : ${{ github.ref == 'refs/heads/main' }} # To avoid that the cache explode
41
41
with :
42
- key : v1-ios-dependencies-${{ hashfiles('scripts/releases/ios-prebuilds /configuration.js') }}
42
+ key : v1-ios-dependencies-${{ hashfiles('scripts/releases/ios-prebuild /configuration.js') }}
43
43
enableCrossOsArchive : true
44
44
path : packages/react-native/third-party/
45
45
73
73
uses : actions/cache/restore@v4
74
74
with :
75
75
path : packages/react-native/third-party/.build/Build/Products
76
- key : v1-ios-dependencies-slice-folder-${{ matrix.slice }}-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuilds /configuration.js') }}
76
+ key : v1-ios-dependencies-slice-folder-${{ matrix.slice }}-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuild /configuration.js') }}
77
77
- name : Yarn Install
78
78
if : steps.restore-slice-folder.outputs.cache-hit != 'true'
79
79
uses : ./.github/actions/yarn-install
@@ -106,7 +106,7 @@ jobs:
106
106
uses : actions/cache/save@v4
107
107
if : ${{ github.ref == 'refs/heads/main' }} # To avoid that the cache explode
108
108
with :
109
- key : v1-ios-dependencies-slice-folder-${{ matrix.slice }}-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuilds /configuration.js') }}
109
+ key : v1-ios-dependencies-slice-folder-${{ matrix.slice }}-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuild /configuration.js') }}
110
110
enableCrossOsArchive : true
111
111
path : |
112
112
packages/react-native/third-party/.build/Build/Products
@@ -132,8 +132,9 @@ jobs:
132
132
id : restore-xcframework
133
133
uses : actions/cache/restore@v4
134
134
with :
135
- path : packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework
136
- key : v1-ios-dependencies-xcframework-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuilds/configuration.js') }}
135
+ path : |
136
+ packages/react-native/third-party/
137
+ key : v1-ios-dependencies-xcframework-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuild/configuration.js') }}
137
138
# If cache hit, we already have our binary. We don't need to do anything.
138
139
- name : Yarn Install
139
140
if : steps.restore-xcframework.outputs.cache-hit != 'true'
@@ -148,33 +149,35 @@ jobs:
148
149
- name : Create XCFramework
149
150
if : steps.restore-xcframework.outputs.cache-hit != 'true'
150
151
run : node scripts/releases/prepare-ios-prebuilds.js -c
151
- - name : Rename XCFramework
152
+ - name : Compress and Rename XCFramework
152
153
if : steps.restore-xcframework.outputs.cache-hit != 'true'
153
- run : mv packages/react-native/third-party/ReactNativeDependencies.xcframework packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework
154
+ run : |
155
+ tar -cz -f packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework.tar.gz \
156
+ packages/react-native/third-party/ReactNativeDependencies.xcframework
154
157
- name : Show Symbol folder content
155
158
if : steps.restore-xcframework.outputs.cache-hit != 'true'
156
159
run : ls -lR packages/react-native/third-party/Symbols
157
- - name : Rename dSYM
160
+ - name : Compress and Rename dSYM
158
161
if : steps.restore-xcframework.outputs.cache-hit != 'true'
159
162
run : |
160
- cp -R \
161
- packages/react-native/third-party/Symbols/ReactNativeDependencies.framework.dSYM \
162
- packages/react-native/third-party/Symbols/ReactNativeDependencies${{ matrix.flavor }}.framework.dSYM
163
- rm -rf packages/react-native/third-party/Symbols/ReactNativeDependencies.framework.dSYM
163
+ tar -cz -f packages/react-native/third-party/Symbols/ReactNativeDependencies${{ matrix.flavor }}.framework.dSYM.tar.gz \
164
+ packages/react-native/third-party/Symbols/ReactNativeDependencies.framework.dSYM
164
165
- name : Upload XCFramework Artifact
165
166
uses : actions/upload-artifact@v4
166
167
with :
167
168
name : ReactNativeDependencies${{ matrix.flavor }}.xcframework
168
- path : packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework
169
+ path : packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework.tar.gz
169
170
- name : Upload dSYM Artifact
170
171
uses : actions/upload-artifact@v4
171
172
with :
172
173
name : ReactNativeDependencies${{ matrix.flavor }}.framework.dSYM
173
174
path : |
174
- packages/react-native/third-party/Symbols/ReactNativeDependencies${{ matrix.flavor }}.framework.dSYM
175
+ packages/react-native/third-party/Symbols/ReactNativeDependencies${{ matrix.flavor }}.framework.dSYM.tar.gz
175
176
- name : Save XCFramework in Cache
176
177
if : ${{ github.ref == 'refs/heads/main' }} # To avoid that the cache explode
177
178
uses : actions/cache/save@v4
178
179
with :
179
- path : packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework
180
- key : v1-ios-dependencies-xcframework-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuilds/configuration.js') }}
180
+ path : |
181
+ packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework.tar.gz
182
+ packages/react-native/third-party/ReactNativeDependencies${{ matrix.flavor }}.framework.dSYM.tar.gz
183
+ key : v1-ios-dependencies-xcframework-${{ matrix.flavor }}-${{ hashfiles('scripts/releases/ios-prebuild/configuration.js') }}
0 commit comments