File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
.github/actions/build-android Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments