Skip to content

Commit 1625962

Browse files
lavenzgfacebook-github-bot
authored andcommitted
Add e2e android intl test
Differential Revision: D70862275
1 parent 93efc44 commit 1625962

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,36 @@ jobs:
121121
# toLocaleLowerCase and toLocaleUpperCase are the two main ones.
122122
# cmake --build ./build --target check-hermes
123123
python3 hermes/utils/test_runner.py --test-intl test262/test -b build/bin ${{ matrix.test_runner_flags }}
124+
125+
test-android-e2e-intl:
126+
strategy:
127+
matrix:
128+
os: [ubuntu-22.04]
129+
abis: [x86]
130+
include:
131+
- os: ubuntu-24.04-arm
132+
abis: arm64-v8a
133+
runs-on: {{ matrix.os }}
134+
env:
135+
HERMES_WS_DIR: /home/runner/work/hermes
136+
ANDROID_NDK: /usr/local/lib/android/sdk/ndk/27.1.12297006
137+
steps:
138+
- name: Checkout Hermes
139+
uses: actions/[email protected]
140+
- name: Checkout Test262
141+
run: |-
142+
cd "$HERMES_WS_DIR"
143+
git clone https://github.com/tc39/test262
144+
cd test262
145+
git checkout 62626e083bd506124aac6c799464d76c2c42851b
146+
- name: Build Hermes Compiler
147+
run: |-
148+
cd "$HERMES_WS_DIR"
149+
cmake -S hermes -B ./build -DCMAKE_BUILD_TYPE=Release
150+
cmake --build ./build -j 4 --target hermesc
151+
- name: Run android tests
152+
uses: ReactiveCircus/[email protected]
153+
with:
154+
api-level: 29
155+
emulator-options: -timezone Europe/Paris -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
156+
script: cd android && ./gradlew :intltest:prepareTests && ./gradlew -Pabis={{ matrix.abis }} :intltest:connectedAndroidTest

0 commit comments

Comments
 (0)