@@ -112,7 +112,7 @@ jobs:
112
112
. ./utils/build-apple-framework.sh
113
113
build_host_hermesc_if_needed
114
114
build_apple_slices_hermes :
115
- runs-on : macos-13
115
+ runs-on : macos-14
116
116
needs : [build_hermesc_apple, prepare_hermes_workspace]
117
117
env :
118
118
HERMES_WS_DIR : /tmp/hermes
@@ -123,10 +123,12 @@ jobs:
123
123
fail-fast : false
124
124
matrix :
125
125
flavor : [Debug, Release]
126
- slice : [macosx, iphoneos, iphonesimulator, catalyst]
126
+ slice : [macosx, iphoneos, iphonesimulator, catalyst, xros, xrsimulator ]
127
127
steps :
128
128
- name : Checkout
129
129
uses : actions/checkout@v4.1.1
130
+ - name : Setup xcode
131
+ uses : ./.github/actions/setup-xcode
130
132
- name : Cache setup
131
133
id : cache_setup
132
134
uses : ./.github/actions/cache_setup
@@ -267,6 +269,18 @@ jobs:
267
269
with :
268
270
path : ./packages/react-native/sdks/hermes/build_catalyst_${{ matrix.flavor }}
269
271
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') }}-catalyst-${{ matrix.flavor }}
272
+ - name : Slice cache xros
273
+ if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != true }}
274
+ uses : actions/cache@v4.0.0
275
+ with :
276
+ path : ./packages/react-native/sdks/hermes/build_xros_${{ matrix.flavor }}
277
+ 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') }}-xros-${{ matrix.flavor }}
278
+ - name : Slice cache xrsimulator
279
+ if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != true }}
280
+ uses : actions/cache@v4.0.0
281
+ with :
282
+ path : ./packages/react-native/sdks/hermes/build_xrsimulator_${{ matrix.flavor }}
283
+ 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') }}-xrsimulator-${{ matrix.flavor }}
270
284
- name : Move back build folders
271
285
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != true }}
272
286
run : |
@@ -276,6 +290,8 @@ jobs:
276
290
mv build_iphoneos_${{ matrix.flavor }} build_iphoneos
277
291
mv build_iphonesimulator_${{ matrix.flavor }} build_iphonesimulator
278
292
mv build_catalyst_${{ matrix.flavor }} build_catalyst
293
+ mv build_xros_${{ matrix.flavor }} build_xros
294
+ mv build_xrsimulator_${{ matrix.flavor }} build_xrsimulator
279
295
- name : Prepare destroot folder
280
296
if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != true }}
281
297
run : |
@@ -333,6 +349,8 @@ jobs:
333
349
mkdir -p "$WORKING_DIR/catalyst"
334
350
mkdir -p "$WORKING_DIR/iphoneos"
335
351
mkdir -p "$WORKING_DIR/iphonesimulator"
352
+ mkdir -p "$WORKING_DIR/xros"
353
+ mkdir -p "$WORKING_DIR/xrsimulator"
336
354
337
355
cd ./packages/react-native/sdks/hermes || exit 1
338
356
@@ -341,6 +359,8 @@ jobs:
341
359
cp -r build_catalyst/$DSYM_FILE_PATH "$WORKING_DIR/catalyst/"
342
360
cp -r build_iphoneos/$DSYM_FILE_PATH "$WORKING_DIR/iphoneos/"
343
361
cp -r build_iphonesimulator/$DSYM_FILE_PATH "$WORKING_DIR/iphonesimulator/"
362
+ cp -r build_xros/$DSYM_FILE_PATH "$WORKING_DIR/xros/"
363
+ cp -r build_xrsimulator/$DSYM_FILE_PATH "$WORKING_DIR/xrsimulator/"
344
364
345
365
DEST_DIR="/tmp/hermes/dSYM/$FLAVOR"
346
366
tar -C "$WORKING_DIR" -czvf "hermes.framework.dSYM" .
0 commit comments