@@ -120,16 +120,15 @@ jobs:
120120
121121 prebuild_react_native_core :
122122 uses : ./.github/workflows/prebuild-ios-core.yml
123+ with :
124+ use-hermes-nightly : ${{ endsWith(github.ref_name, '-stable') }}
123125 secrets : inherit
124126 needs : [prebuild_apple_dependencies, build_hermes_macos]
125127
126128 test_ios_rntester_ruby_3_2_0 :
127129 runs-on : macos-14
128130 needs :
129131 [build_apple_slices_hermes, prepare_hermes_workspace, build_hermes_macos, prebuild_apple_dependencies, prebuild_react_native_core]
130- env :
131- HERMES_WS_DIR : /tmp/hermes
132- HERMES_TARBALL_ARTIFACTS_DIR : /tmp/hermes/hermes-runtime-darwin
133132 steps :
134133 - name : Checkout
135134 uses : actions/checkout@v4
@@ -145,9 +144,6 @@ jobs:
145144 runs-on : macos-14-large
146145 needs :
147146 [build_apple_slices_hermes, prepare_hermes_workspace, build_hermes_macos, prebuild_apple_dependencies, prebuild_react_native_core]
148- env :
149- HERMES_WS_DIR : /tmp/hermes
150- HERMES_TARBALL_ARTIFACTS_DIR : /tmp/hermes/hermes-runtime-darwin
151147 continue-on-error : true
152148 strategy :
153149 fail-fast : false
@@ -169,9 +165,6 @@ jobs:
169165 runs-on : macos-14-large
170166 needs :
171167 [test_ios_rntester]
172- env :
173- HERMES_WS_DIR : /tmp/hermes
174- HERMES_TARBALL_ARTIFACTS_DIR : /tmp/hermes/hermes-runtime-darwin
175168 strategy :
176169 fail-fast : false
177170 matrix :
@@ -259,9 +252,6 @@ jobs:
259252 REACT_NATIVE_PKG=$(find /tmp/react-native-tmp -type f -name "*.tgz")
260253 echo "React Native tgs is $REACT_NATIVE_PKG"
261254
262- HERMES_PATH=$(find /tmp/react-native-tmp -type f -name "*.tar.gz")
263- echo "Hermes path is $HERMES_PATH"
264-
265255 # For stable branches, we want to use the stable branch of the template
266256 # In all the other cases, we want to use "main"
267257 BRANCH=${{ github.ref_name }}
@@ -278,7 +268,7 @@ jobs:
278268 export RCT_USE_LOCAL_RN_DEP=/tmp/third-party/ReactNativeDependencies${{ matrix.flavor }}.xcframework.tar.gz
279269 # Disable prebuilds for now, as they are causing issues with E2E tests for 0.82-stable branch
280270 # export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ matrix.flavor }}.xcframework.tar.gz"
281- HERMES_ENGINE_TARBALL_PATH=$HERMES_PATH RCT_NEW_ARCH_ENABLED=$NEW_ARCH_ENABLED bundle exec pod install
271+ RCT_NEW_ARCH_ENABLED=$NEW_ARCH_ENABLED bundle exec pod update hermes-engine --no-repo-update
282272
283273 xcodebuild \
284274 -scheme "RNTestProject" \
@@ -535,6 +525,12 @@ jobs:
535525 cache-encryption-key : ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
536526 - name : Run yarn install
537527 uses : ./.github/actions/yarn-install
528+ - name : Set nightly Hermes versions
529+ shell : bash
530+ run : |
531+ node ./scripts/releases/set-hermes-versions.js --nightly
532+ - name : Run yarn install again, with the correct hermes version
533+ uses : ./.github/actions/yarn-install
538534 - name : Prepare the Helloworld application
539535 shell : bash
540536 run : node ./scripts/e2e/init-project-e2e.js --useHelloWorld --pathToLocalReactNative "$GITHUB_WORKSPACE/build/$(cat build/react-native-package-version)"
0 commit comments