Hermes is built from source on the CI for iOS in React Native 0.71.0-rc.3 #35547
Labels
p: Callstack
Partner: Callstack
Partner
Platform: iOS
iOS applications.
Priority: High
Resolution: Fixed
A PR that fixes this issue has been merged.
Tech: Hermes
Hermes Engine: https://hermesengine.dev/
Description
On some of the CI builds on GitHub Actions, it seems Hermes is being built from source. This increases the build time a lot.
Here are the logs from
pod install
:From a discussion with @kelset and @tido64, we found this line that results in this behavior: https://github.com/facebook/react-native/blob/0.71-stable/sdks/hermes-engine/hermes-engine.podspec#L46
The
CI
variable is set totrue
by default on GitHub Actions (and some other CIs): https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variablesThis code was added here: 4b51207
As per @cipolleschi
Version
0.71.0-rc.3
Output of
npx react-native info
Local environment is not relevant since the issue is on CI.
Steps to reproduce
I was able to reproduce this by triggering an iOS build on GitHub Actions. Link to logs: https://github.com/callstack/react-native-builder-bob/actions/runs/3601771799/jobs/6067958978
Snack, code example, screenshot, or link to a repository
Link to workflow: https://github.com/callstack/react-native-builder-bob/blob/main/.github/workflows/build-templates.yml
The text was updated successfully, but these errors were encountered: