@@ -112,7 +112,7 @@ jobs:
112112 . ./utils/build-apple-framework.sh
113113 build_host_hermesc_if_needed
114114 build_apple_slices_hermes :
115- runs-on : macos-13
115+ runs-on : macos-14
116116 needs : [build_hermesc_apple, prepare_hermes_workspace]
117117 env :
118118 HERMES_WS_DIR : /tmp/hermes
@@ -123,10 +123,12 @@ jobs:
123123 fail-fast : false
124124 matrix :
125125 flavor : [Debug, Release]
126- slice : [macosx, iphoneos, iphonesimulator, catalyst]
126+ slice : [macosx, iphoneos, iphonesimulator, catalyst, xros, xrsimulator ]
127127 steps :
128128 - name : Checkout
129129 uses : actions/checkout@v4.1.1
130+ - name : Setup xcode
131+ uses : ./.github/actions/setup-xcode
130132 - name : Cache setup
131133 id : cache_setup
132134 uses : ./.github/actions/cache_setup
@@ -267,6 +269,18 @@ jobs:
267269 with :
268270 path : ./packages/react-native/sdks/hermes/build_catalyst_${{ matrix.flavor }}
269271 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 }}
270284 - name : Move back build folders
271285 if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != true }}
272286 run : |
@@ -276,6 +290,8 @@ jobs:
276290 mv build_iphoneos_${{ matrix.flavor }} build_iphoneos
277291 mv build_iphonesimulator_${{ matrix.flavor }} build_iphonesimulator
278292 mv build_catalyst_${{ matrix.flavor }} build_catalyst
293+ mv build_xros_${{ matrix.flavor }} build_xros
294+ mv build_xrsimulator_${{ matrix.flavor }} build_xrsimulator
279295 - name : Prepare destroot folder
280296 if : ${{ steps.check_if_apple_artifacts_are_there.outputs.ARTIFACTS_EXIST != true }}
281297 run : |
@@ -333,6 +349,8 @@ jobs:
333349 mkdir -p "$WORKING_DIR/catalyst"
334350 mkdir -p "$WORKING_DIR/iphoneos"
335351 mkdir -p "$WORKING_DIR/iphonesimulator"
352+ mkdir -p "$WORKING_DIR/xros"
353+ mkdir -p "$WORKING_DIR/xrsimulator"
336354
337355 cd ./packages/react-native/sdks/hermes || exit 1
338356
@@ -341,6 +359,8 @@ jobs:
341359 cp -r build_catalyst/$DSYM_FILE_PATH "$WORKING_DIR/catalyst/"
342360 cp -r build_iphoneos/$DSYM_FILE_PATH "$WORKING_DIR/iphoneos/"
343361 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/"
344364
345365 DEST_DIR="/tmp/hermes/dSYM/$FLAVOR"
346366 tar -C "$WORKING_DIR" -czvf "hermes.framework.dSYM" .
0 commit comments