Commit Graph

11 Commits

Author SHA1 Message Date
Riccardo Cipolleschi a2d6f5afe5 fix: build hermes from source on PR against stable 2022-07-20 12:49:13 +01:00
Riccardo Cipolleschi d6be1af6d3 fix: make sure we can build hermes when working against stable 2022-07-19 17:32:35 +01:00
Nicola Corti f50936bef2 Lazily query for git branch & remote (#33936) 2022-05-31 13:22:16 +01:00
Nicola Corti 0ca6e41059 Check isOnAReleaseTag alongside isOnAReleaseBranch 2022-05-30 17:42:25 +01:00
Nicola Corti 2a6832a7e3 Fix formatting for hermes-utils.js 2022-05-30 15:03:31 +01:00
Nicola Corti 659b693fcd Fix hermes-utils.js building from source when on the release branch 2022-05-30 14:57:14 +01:00
Héctor Ramos 6b1e193f15 Hermes: Use pre-built artifacts in hermes-engine
Summary:
Update `hermes-engine.podspec` to use pre-built Hermes artifacts from the corresponding React Native GitHub Release when targeting a specific React Native release.
Otherwise, fallback to building Hermes from source.

Changelog: [Internal]

Reviewed By: cortinico, cipolleschi

Differential Revision: D36609257

fbshipit-source-id: 6179c9e255558c7eaf1417ff46a2e7db120295f0
2022-05-30 15:07:56 +02:00
Héctor Ramos ea6706e166 Hermes: Add scripts to package, remove shelljs
Summary:
The new Hermes scripts need to be included in the `react-native` npm.

The `shelljs` dependency that was used by the Hermes scripts is a dev dependency, so instead of adding to the `react-native` npm size, we refactored its use out of hermes-utils.js.

Changelog:
[General][Added] - Add Hermes scripts to package

Reviewed By: cortinico

Differential Revision: D36387135

fbshipit-source-id: 12d0bc29d365c4cb18d33a0d390e6e7d34864b7a
2022-05-30 14:59:01 +02:00
Héctor Ramos 1dcdcbd4f2 iOS: Use pre-built hermesc if available (#33827)
Summary:
Use pre-built hermesc if available by generating a ImportHermesc.cmake file that points to the hermesc binary. Recent `react-native` releases should have hermesc available in sdks/hermesc.

Hermes build scripts have been updated to support a `HERMES_OVERRIDE_HERMESC_PATH` envvar which can point to this generated ImportHermesc.cmake file.

Pull Request resolved: https://github.com/facebook/react-native/pull/33827

Changelog:
[iOS] [Changed] - Use pre-built HermesC if available in current React Native release

Reviewed By: cortinico

Differential Revision: D36024615

fbshipit-source-id: 476569f73309f9bd142f28cb02d1f7d57b6cbc6a
2022-05-20 12:49:03 +02:00
Héctor Ramos 78b38429a4 Hermes: Create prepare-hermes-for-build.js script
Summary:
Adds a script that uses the new hermes-utils.js functions to prepare the local filesystem for Hermes to be built from source (e.g. download the Hermes source code tarball and extract it into its final location).

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D36334624

fbshipit-source-id: 012f758ecda07931bdb0ab1728b87733bf5af16a
2022-05-20 12:44:10 +02:00
Héctor Ramos fc767f7ef1 Hermes: Consolidate Hermes build scripts into scripts/hermes/hermes-utils.js
Summary:
Currently, the tasks for downloading, expanding, and preparing Hermes to be built for Apple targets are split across the Circle CI and CocoaPods configs.

This diff sets out to consolidate these tasks into a single hermes-utils.js script that can be reused across CI and build systems.

The release script that is used to assign the Hermes tag for a given React Native version has been moved into `scripts/hermes`.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D36329356

fbshipit-source-id: 0222070adf201fa533b607a183471396d45c6caf
2022-05-20 12:44:04 +02:00