Merge pull request #34223 from facebook/fix/hermes_in_release

Fix/hermes in release
This commit is contained in:
Riccardo
2022-07-20 10:07:19 +01:00
committed by GitHub
2 changed files with 12 additions and 2 deletions
+11 -2
View File
@@ -937,8 +937,17 @@ jobs:
name: Download Hermes tarball
command: |
node scripts/hermes/prepare-hermes-for-build
cp sdks/download/* $HERMES_WS_DIR/download/.
cp -r sdks/hermes/* $HERMES_WS_DIR/hermes/.
# If Hermes is not built from source, we don't have these folders.
DOWNLOAD_FOLDER=sdks/download/
if [[ -d $DOWNLOAD_FOLDER ]]; then
cp $DOWNLOAD_FOLDER* $HERMES_WS_DIR/download/.
fi
HERMES_FOLDER=sdks/hermes/
if [[ -d $HERMES_FOLDER ]]; then
cp -r $HERMES_FOLDER* $HERMES_WS_DIR/hermes/.
fi
- save_cache:
key: v1-hermes-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/hermes/hermesversion" }}
paths:
+1
View File
@@ -192,6 +192,7 @@ function isOnAReleaseTag() {
function shouldBuildHermesFromSource() {
const hermesTag = readHermesTag();
return (
isOnAReleaseBranch() ||
isOnAReleaseTag() ||