Skip to content

Commit caaf442

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Use prebuilt Hermes when building Android on CI
Summary: Changelog: [Internal] Differential Revision: D87929652
1 parent b37023c commit caaf442

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/build-android/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,18 @@ runs:
4545
if [[ "${{ inputs.release-type }}" == "dry-run" ]]; then
4646
# dry-run: we only build ARM64 to save time/resources. For release/nightlies the default is to build all archs.
4747
export ORG_GRADLE_PROJECT_reactNativeArchitectures="arm64-v8a,x86" # x86 is required for E2E testing
48+
export USE_HERMES_NIGHTLY="ORG_GRADLE_PROJECT_react.internal.useHermesNightly=true"
4849
TASKS="publishAllToMavenTempLocal build"
4950
elif [[ "${{ inputs.release-type }}" == "nightly" ]]; then
5051
# nightly: we set isSnapshot to true so artifacts are sent to the right repository on Maven Central.
5152
export ORG_GRADLE_PROJECT_isSnapshot="true"
53+
export USE_HERMES_NIGHTLY="ORG_GRADLE_PROJECT_react.internal.useHermesNightly=true"
5254
TASKS="publishAllToMavenTempLocal publishAndroidToSonatype build"
5355
else
5456
# release: we want to build all archs (default)
5557
TASKS="publishAllToMavenTempLocal publishAndroidToSonatype build"
5658
fi
57-
./gradlew $TASKS -PenableWarningsAsErrors=true
59+
env "$USE_HERMES_NIGHTLY" ./gradlew $TASKS -PenableWarningsAsErrors=true
5860
- name: Save Android ccache
5961
if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, '-stable') }}
6062
uses: actions/cache/save@v4

0 commit comments

Comments
 (0)