@@ -117,7 +117,7 @@ jobs:
117
117
uses : actions/cache/restore@v4.0.0
118
118
with :
119
119
path : ./packages/react-native/sdks/hermes/build_${{ matrix.slice }}_${{ matrix.flavor }}
120
- key : v4 -hermes-apple-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}-${{ hashfiles('packages/react-native/sdks/hermes-engine/utils/build-apple-framework.sh') }}-${{ matrix.slice }}-${{ matrix.flavor }}
120
+ key : v5 -hermes-apple-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}-${{ hashfiles('packages/react-native/sdks/hermes-engine/utils/build-apple-framework.sh') }}-${{ matrix.slice }}-${{ matrix.flavor }}
121
121
- name : Build the Hermes ${{ matrix.slice }} frameworks
122
122
run : |
123
123
cd ./packages/react-native/sdks/hermes || exit 1
@@ -171,17 +171,21 @@ jobs:
171
171
echo "Please try again"
172
172
exit 1
173
173
fi
174
+ - name : Compress slices to preserve Symlinks
175
+ run : |
176
+ cd ./packages/react-native/sdks/hermes
177
+ tar -czv -f build_${{ matrix.slice }}_${{ matrix.flavor }}.tar.gz build_${{ matrix.slice }}_${{ matrix.flavor }}
174
178
- name : Upload Artifact for Slice (${{ matrix.slice }}, ${{ matrix.flavor }}}
175
179
uses : actions/upload-artifact@v4.3.1
176
180
with :
177
181
name : slice-${{ matrix.slice }}-${{ matrix.flavor }}
178
- path : ./packages/react-native/sdks/hermes/build_${{ matrix.slice }}_${{ matrix.flavor }}
182
+ path : ./packages/react-native/sdks/hermes/build_${{ matrix.slice }}_${{ matrix.flavor }}.tar.gz
179
183
- name : Save slice cache
180
184
if : ${{ github.ref == 'refs/heads/main' || contains(github.ref, '-stable') }} # To avoid that the cache explode.
181
185
uses : actions/cache/save@v4.0.0
182
186
with :
183
187
path : ./packages/react-native/sdks/hermes/build_${{ matrix.slice }}_${{ matrix.flavor }}
184
- key : v4 -hermes-apple-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}-${{ hashfiles('packages/react-native/sdks/hermes-engine/utils/build-apple-framework.sh') }}-${{ matrix.slice }}-${{ matrix.flavor }}
188
+ key : v5 -hermes-apple-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}-${{ hashfiles('packages/react-native/sdks/hermes-engine/utils/build-apple-framework.sh') }}-${{ matrix.slice }}-${{ matrix.flavor }}
185
189
186
190
build_hermes_macos :
187
191
runs-on : macos-13
@@ -206,7 +210,7 @@ jobs:
206
210
- name : Restore Cached Artifacts
207
211
uses : actions/cache/restore@v4.0.0
208
212
with :
209
- key : v3 -hermes-artifacts-${{ matrix.flavor }}-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
213
+ key : v4 -hermes-artifacts-${{ matrix.flavor }}-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
210
214
path : |
211
215
/tmp/hermes/osx-bin/${{ matrix.flavor }}
212
216
/tmp/hermes/dSYM/${{ matrix.flavor }}
@@ -235,38 +239,50 @@ jobs:
235
239
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
236
240
uses : actions/download-artifact@v4.1.3
237
241
with :
238
- path : ./packages/react-native/sdks/hermes/build_macosx_${{ matrix.flavor }}
242
+ path : ./packages/react-native/sdks/hermes/
239
243
name : slice-macosx-${{ matrix.flavor }}
240
244
- name : Slice cache iphoneos
241
245
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
242
246
uses : actions/download-artifact@v4.1.3
243
247
with :
244
- path : ./packages/react-native/sdks/hermes/build_iphoneos_${{ matrix.flavor }}
248
+ path : ./packages/react-native/sdks/hermes/
245
249
name : slice-iphoneos-${{ matrix.flavor }}
246
250
- name : Slice cache iphonesimulator
247
251
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
248
252
uses : actions/download-artifact@v4.1.3
249
253
with :
250
- path : ./packages/react-native/sdks/hermes/build_iphonesimulator_${{ matrix.flavor }}
254
+ path : ./packages/react-native/sdks/hermes/
251
255
name : slice-iphonesimulator-${{ matrix.flavor }}
252
256
- name : Slice cache catalyst
253
257
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
254
258
uses : actions/download-artifact@v4.1.3
255
259
with :
256
- path : ./packages/react-native/sdks/hermes/build_catalyst_${{ matrix.flavor }}
260
+ path : ./packages/react-native/sdks/hermes/
257
261
name : slice-catalyst-${{ matrix.flavor }}
258
262
- name : Slice cache xros
259
263
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
260
264
uses : actions/download-artifact@v4.1.3
261
265
with :
262
- path : ./packages/react-native/sdks/hermes/build_xros_${{ matrix.flavor }}
266
+ path : ./packages/react-native/sdks/hermes/
263
267
name : slice-xros-${{ matrix.flavor }}
264
268
- name : Slice cache xrsimulator
265
269
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
266
270
uses : actions/download-artifact@v4.1.3
267
271
with :
268
- path : ./packages/react-native/sdks/hermes/build_xrsimulator_${{ matrix.flavor }}
272
+ path : ./packages/react-native/sdks/hermes/
269
273
name : slice-xrsimulator-${{ matrix.flavor }}
274
+ - name : Unzip slices
275
+ if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
276
+ run : |
277
+ cd ./packages/react-native/sdks/hermes
278
+ ls -l .
279
+
280
+ tar -xzv -f build_catalyst_${{ matrix.flavor }}.tar.gz
281
+ tar -xzv -f build_iphoneos_${{ matrix.flavor }}.tar.gz
282
+ tar -xzv -f build_iphonesimulator_${{ matrix.flavor }}.tar.gz
283
+ tar -xzv -f build_macosx_${{ matrix.flavor }}.tar.gz
284
+ tar -xzv -f build_xros_${{ matrix.flavor }}.tar.gz
285
+ tar -xzv -f build_xrsimulator_${{ matrix.flavor }}.tar.gz
270
286
- name : Move back build folders
271
287
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != 'true' }}
272
288
run : |
@@ -366,7 +382,7 @@ jobs:
366
382
uses : actions/cache/save@v4.0.0
367
383
if : ${{ github.ref == 'refs/heads/main' || contains(github.ref, '-stable') }} # To avoid that the cache explode.
368
384
with :
369
- key : v3 -hermes-artifacts-${{ matrix.flavor }}-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
385
+ key : v4 -hermes-artifacts-${{ matrix.flavor }}-${{ needs.prepare_hermes_workspace.outputs.hermes-version }}-${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
370
386
path : |
371
387
/tmp/hermes/osx-bin/${{ matrix.flavor }}
372
388
/tmp/hermes/dSYM/${{ matrix.flavor }}
0 commit comments