forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '5e6fed361c1a95b770c9d9b2dd7bb49676fa95e0' into 0.74-stable
- Loading branch information
Showing
427 changed files
with
6,488 additions
and
3,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ jobs: | |
executor: reactnativeios | ||
parameters: | ||
ruby_version: | ||
default: "2.7.7" | ||
default: "2.7.8" | ||
description: The version of ruby that must be used | ||
type: string | ||
steps: | ||
|
@@ -599,7 +599,7 @@ jobs: | |
environment: | ||
- HERMES_WS_DIR: *hermes_workspace_root | ||
- HERMES_VERSION_FILE: "packages/react-native/sdks/.hermesversion" | ||
- BUILD_FROM_SOURCE: true | ||
- RCT_BUILD_HERMES_FROM_SOURCE: true | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
|
@@ -780,7 +780,7 @@ jobs: | |
default: "iphoneos" | ||
description: The Hermes Slice that this job has to build | ||
type: enum | ||
enum: ["macosx", "iphoneos", "iphonesimulator", "catalyst"] | ||
enum: ["macosx", "iphoneos", "iphonesimulator", "catalyst", "xros", "xrsimulator"] | ||
executor: reactnativeios | ||
environment: | ||
- HERMES_WS_DIR: *hermes_workspace_root | ||
|
@@ -813,13 +813,18 @@ jobs: | |
exit 0 | ||
fi | ||
export RELEASE_VERSION=$(cat /tmp/react-native-version) | ||
if [[ "$SLICE" == "macosx" ]]; then | ||
echo "[HERMES] Building Hermes for MacOS" | ||
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-mac-framework.sh | ||
else | ||
BUILD_TYPE="<< parameters.flavor >>" MACOSX_DEPLOYMENT_TARGET=10.15 ./utils/build-mac-framework.sh | ||
elif [[ "$SLICE" == "xros" ]] || [[ "$SLICE" == "xrsimulator" ]]; then | ||
echo "[HERMES] Building Hermes for XR: $SLICE" | ||
BUILD_TYPE="<< parameters.flavor >>" XROS_DEPLOYMENT_TARGET=1.0 ./utils/build-ios-framework.sh "$SLICE" | ||
elif [[ "$SLICE" == "iphoneos" ]] || [[ "$SLICE" == "iphonesimulator" ]] || [[ "$SLICE" == "catalyst" ]] ; then | ||
echo "[HERMES] Building Hermes for iOS: $SLICE" | ||
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE" | ||
BUILD_TYPE="<< parameters.flavor >>" IOS_DEPLOYMENT_TARGET=13.4 ./utils/build-ios-framework.sh "$SLICE" | ||
fi | ||
unset RELEASE_VERSION | ||
echo "Moving from build_$SLICE to $FINAL_PATH" | ||
mv build_"$SLICE" "$FINAL_PATH" | ||
|
@@ -879,6 +884,10 @@ jobs: | |
key: << parameters.slice_base_cache_key >>-iphonesimulator-<< parameters.flavor >> | ||
- restore_cache: | ||
key: << parameters.slice_base_cache_key >>-catalyst-<< parameters.flavor >> | ||
- restore_cache: | ||
key: << parameters.slice_base_cache_key >>-xros-<< parameters.flavor >> | ||
- restore_cache: | ||
key: << parameters.slice_base_cache_key >>-xrsimulator-<< parameters.flavor >> | ||
- run: | ||
name: "Move back build folders" | ||
command: | | ||
|
@@ -887,6 +896,8 @@ jobs: | |
mv build_iphoneos_<< parameters.flavor >> build_iphoneos | ||
mv build_iphonesimulator_<< parameters.flavor >> build_iphonesimulator | ||
mv build_catalyst_<< parameters.flavor >> build_catalyst | ||
mv build_xros_<< parameters.flavor >> build_xros | ||
mv build_xrsimulator_<< parameters.flavor >> build_xrsimulator | ||
- run: | ||
name: "Prepare destroot folder" | ||
command: | | ||
|
@@ -898,7 +909,11 @@ jobs: | |
command: | | ||
cd ./packages/react-native/sdks/hermes || exit 1 | ||
echo "[HERMES] Creating the universal framework" | ||
export IOS_DEPLOYMENT_TARGET=13.4 | ||
export RELEASE_VERSION=$(cat /tmp/react-native-version) | ||
./utils/build-ios-framework.sh build_framework | ||
unset RELEASE_VERSION | ||
unset IOS_DEPLOYMENT_TARGET | ||
- run: | ||
name: Package the Hermes Apple frameworks | ||
command: | | ||
|
@@ -933,6 +948,8 @@ jobs: | |
mkdir -p "$WORKING_DIR/catalyst" | ||
mkdir -p "$WORKING_DIR/iphoneos" | ||
mkdir -p "$WORKING_DIR/iphonesimulator" | ||
mkdir -p "$WORKING_DIR/xros" | ||
mkdir -p "$WORKING_DIR/xrsimulator" | ||
cd ./packages/react-native/sdks/hermes || exit 1 | ||
|
@@ -941,6 +958,8 @@ jobs: | |
cp -r build_catalyst/$DSYM_FILE_PATH "$WORKING_DIR/catalyst/" | ||
cp -r build_iphoneos/$DSYM_FILE_PATH "$WORKING_DIR/iphoneos/" | ||
cp -r build_iphonesimulator/$DSYM_FILE_PATH "$WORKING_DIR/iphonesimulator/" | ||
cp -r build_xrsimulator/$DSYM_FILE_PATH "$WORKING_DIR/xrsimulator/" | ||
cp -r build_xros/$DSYM_FILE_PATH "$WORKING_DIR/xros/" | ||
DEST_DIR="/tmp/hermes/dSYM/$FLAVOR" | ||
tar -C "$WORKING_DIR" -czvf "hermes.framework.dSYM" . | ||
|
@@ -1076,14 +1095,20 @@ jobs: | |
# ------------------------- | ||
# JOBS: Releases | ||
# ------------------------- | ||
prepare_package_for_release: | ||
|
||
# Writes a new commit and tag(s), which will trigger the `publish_release` | ||
# and `publish_bumped_packages` workflows. | ||
prepare_release: | ||
parameters: | ||
version: | ||
type: string | ||
latest: | ||
type: boolean | ||
default: false | ||
dryrun: | ||
# TODO(T182538198): Required for 0.74.x, where workspace packages are out | ||
# of sync with react-native. This will be removed for 0.75+. | ||
monorepo_packages_version: | ||
type: string | ||
tag: | ||
type: string | ||
dry_run: | ||
type: boolean | ||
default: false | ||
executor: reactnativeios | ||
|
@@ -1096,16 +1121,41 @@ jobs: | |
- brew_install: | ||
package: cmake | ||
- run: | ||
name: "Set new react-native version and commit changes" | ||
name: Versioning workspace packages | ||
command: | | ||
VERSION=<< parameters.version >> | ||
if [[ -z "$VERSION" ]]; then | ||
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -1) | ||
echo "Using the version from the package.json: $VERSION" | ||
fi | ||
node ./scripts/releases-ci/prepare-package-for-release.js -v "$VERSION" -l << parameters.latest >> --dry-run << parameters.dryrun >> | ||
node scripts/releases/set-version "<< parameters.monorepo_packages_version >>" --skip-react-native-version | ||
- run: | ||
name: Versioning react-native package | ||
command: | | ||
node scripts/releases/set-rn-version.js -v "<< parameters.version >>" --build-type "release" | ||
- run: | ||
name: Creating release commit | ||
command: | | ||
# I'm seeing failures in automatically detect the email for the | ||
# agent that should push the commit. | ||
git config --global user.name "Distiller" | ||
git config --global user.email "[email protected]" | ||
git commit -a -m "Release << parameters.version >>" -m "#publish-packages-to-npm&<< parameters.tag >>" | ||
git tag -a "v<< parameters.version >>" -m "v<< parameters.version >>" | ||
env GIT_PAGER=cat git show HEAD | ||
- when: | ||
condition: | ||
equal: ["latest", << parameters.tag >>] | ||
steps: | ||
- run: | ||
name: Updating "latest" tag | ||
command: | | ||
git tag -d "latest" | ||
git push origin :latest | ||
git tag -a "latest" -m "latest" | ||
- unless: | ||
condition: << parameters.dry_run >> | ||
steps: | ||
run: | ||
name: Pushing release commit | ||
command: | | ||
git push origin $CIRCLE_BRANCH --follow-tags | ||
build_npm_package: | ||
parameters: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.