@@ -10,9 +10,6 @@ inputs:
10
10
run-unit-tests :
11
11
description : whether unit tests should run or not.
12
12
default : " false"
13
- hermes-tarball-artifacts-dir :
14
- description : The directory where the hermes tarball artifacts are stored
15
- default : /tmp/hermes/hermes-runtime-darwin
16
13
flavor :
17
14
description : The flavor of the build. Must be one of "Debug", "Release".
18
15
default : Debug
@@ -36,56 +33,19 @@ runs:
36
33
uses : ./.github/actions/setup-node
37
34
- name : Run yarn
38
35
uses : ./.github/actions/yarn-install
39
- - name : Download Hermes
40
- uses : actions/download-artifact@v4
41
- with :
42
- name : hermes-darwin-bin-${{ inputs.flavor }}
43
- path : ${{ inputs.hermes-tarball-artifacts-dir }}
44
36
- name : Setup ruby
45
37
uses : ruby/setup-ruby@v1
46
38
with :
47
39
ruby-version : ${{ inputs.ruby-version }}
40
+ - name : Set nightly Hermes versions
41
+ shell : bash
42
+ run : |
43
+ node ./scripts/releases/set-hermes-versions.js --nightly
44
+ - name : Run yarn install again, with the correct hermes version
45
+ uses : ./.github/actions/yarn-install
48
46
- name : Prepare IOS Tests
49
47
if : ${{ inputs.run-unit-tests == 'true' }}
50
48
uses : ./.github/actions/prepare-ios-tests
51
- - name : Set HERMES_ENGINE_TARBALL_PATH envvar if Hermes tarball is present
52
- shell : bash
53
- run : |
54
- HERMES_TARBALL_ARTIFACTS_DIR=${{ inputs.hermes-tarball-artifacts-dir }}
55
- if [ ! -d $HERMES_TARBALL_ARTIFACTS_DIR ]; then
56
- echo "Hermes tarball artifacts dir not present ($HERMES_TARBALL_ARTIFACTS_DIR). Build Hermes from source."
57
- exit 0
58
- fi
59
-
60
- TARBALL_FILENAME=$(node ./packages/react-native/scripts/hermes/get-tarball-name.js --buildType "${{ inputs.flavor }}")
61
- TARBALL_PATH=$HERMES_TARBALL_ARTIFACTS_DIR/$TARBALL_FILENAME
62
-
63
- echo "Looking for $TARBALL_FILENAME in $HERMES_TARBALL_ARTIFACTS_DIR"
64
- echo "$TARBALL_PATH"
65
-
66
- if [ ! -f $TARBALL_PATH ]; then
67
- echo "Hermes tarball not present ($TARBALL_PATH). Build Hermes from source."
68
- exit 0
69
- fi
70
-
71
- echo "Found Hermes tarball at $TARBALL_PATH"
72
- echo "HERMES_ENGINE_TARBALL_PATH=$TARBALL_PATH" >> $GITHUB_ENV
73
- - name : Print Hermes version
74
- shell : bash
75
- run : |
76
- HERMES_TARBALL_ARTIFACTS_DIR=${{ inputs.hermes-tarball-artifacts-dir }}
77
- TARBALL_FILENAME=$(node ./packages/react-native/scripts/hermes/get-tarball-name.js --buildType "${{ inputs.flavor }}")
78
- TARBALL_PATH=$HERMES_TARBALL_ARTIFACTS_DIR/$TARBALL_FILENAME
79
- if [[ -e $TARBALL_PATH ]]; then
80
- tar -xf $TARBALL_PATH
81
- echo 'print(HermesInternal?.getRuntimeProperties?.()["OSS Release Version"])' > test.js
82
- chmod +x ./destroot/bin/hermes
83
- ./destroot/bin/hermes test.js
84
- rm test.js
85
- rm -rf destroot
86
- else
87
- echo 'No Hermes tarball found.'
88
- fi
89
49
- name : Download ReactNativeDependencies
90
50
uses : actions/download-artifact@v4
91
51
with :
105
65
- name : Install CocoaPods dependencies
106
66
shell : bash
107
67
run : |
108
- export HERMES_ENGINE_TARBALL_PATH=$HERMES_ENGINE_TARBALL_PATH
109
68
export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz"
110
69
export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ inputs.flavor }}.xcframework.tar.gz"
111
70
116
75
cd packages/rn-tester
117
76
118
77
bundle install
78
+ bundle exec pod update hermes-engine --no-repo-update
119
79
bundle exec pod install
120
80
- name : Build RNTester
121
81
shell : bash
0 commit comments