Skip to content

Commit 3eb5c71

Browse files
committed
[RN][0.74]Fix XROS build
1 parent c9ce048 commit 3eb5c71

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.circleci/configurations/jobs.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,6 @@ jobs:
786786
- HERMES_WS_DIR: *hermes_workspace_root
787787
- HERMES_TARBALL_ARTIFACTS_DIR: *hermes_tarball_artifacts_dir
788788
- HERMES_OSXBIN_ARTIFACTS_DIR: *hermes_osxbin_artifacts_dir
789-
- IOS_DEPLOYMENT_TARGET: "13.4"
790-
- XROS_DEPLOYMENT_TARGET: "1.0"
791-
- MACOSX_DEPLOYMENT_TARGET: "10.15"
792789
steps:
793790
- *attach_hermes_workspace
794791
- stop_job_if_apple_artifacts_are_there:
@@ -824,6 +821,23 @@ jobs:
824821
echo "[HERMES] Building Hermes for iOS: $SLICE"
825822
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE"
826823
fi
824+
825+
if [[ "$SLICE" == "macosx" ]]; then
826+
export MACOSX_DEPLOYMENT_TARGET="10.15"
827+
echo "[HERMES] Building Hermes for MacOS"
828+
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-mac-framework.sh
829+
unset MACOSX_DEPLOYMENT_TARGET
830+
elif [[ "$SLICE" == "xros" ]] || [[ "$SLICE" == "xrsimulator" ]]; then
831+
export XROS_DEPLOYMENT_TARGET="1.0"
832+
echo "[HERMES] Building Hermes for XR: $SLICE"
833+
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE"
834+
unset XROS_DEPLOYMENT_TARGET
835+
elif [[ "$SLICE" == "iphoneos" ]] || [[ "$SLICE" == "iphonesimulator" ]] || [[ "$SLICE" == "catalyst" ]] ; then
836+
export IOS_DEPLOYMENT_TARGET="13.4"
837+
echo "[HERMES] Building Hermes for iOS: $SLICE"
838+
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE"
839+
unset IOS_DEPLOYMENT_TARGET
840+
fi
827841
unset RELEASE_VERSION
828842
829843
echo "Moving from build_$SLICE to $FINAL_PATH"

0 commit comments

Comments
 (0)