Skip to content

Commit

Permalink
Add more test jobs in Github Action (#1632)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #1632

Differential Revision: D70209452
  • Loading branch information
lavenzg authored and facebook-github-bot committed Feb 27, 2025
1 parent 161ebf9 commit 54510d7
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 6 deletions.
112 changes: 106 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- static_h
jobs:
macos:
runs-on: macos-latest
runs-on: macos-15
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
xcode-version: 16.2
- uses: actions/[email protected]
with:
path: hermes
Expand Down Expand Up @@ -38,18 +38,118 @@ jobs:
name: macos-hermes
path: output

test-macos-test262:
runs-on: macos-15
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.2
- uses: actions/[email protected]
with:
path: hermes
- name: Setup dependencies
run: |-
brew install cmake ninja
# Check out test262 at a pinned revision to reduce flakiness
git clone https://github.com/tc39/test262
cd test262
git checkout 62626e083bd506124aac6c799464d76c2c42851b
- name: Run Hermes tests and test262 with Intl
run: |-
cmake -S hermes -B build -GNinja -DHERMES_ENABLE_INTL=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build
cmake --build ./build --target check-hermes
python3 hermes/utils/test_runner.py --test-intl test262/test -b build/bin
test-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |-
sudo apt update
sudo apt install -y git openssh-client cmake build-essential \
libicu-dev zip python3 ninja-build
- uses: actions/[email protected]
with:
path: hermes
- name: Run Hermes regression tests
run: |-
cmake -S hermes -GNinja -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --target check-hermes all
test-linux-arm64:
runs-on: ubuntu-24.04-arm
steps:
- name: Install dependencies
run: |-
sudo apt update
sudo apt install -y git openssh-client cmake build-essential \
libicu-dev zip python3
libicu-dev zip python3 ninja-build
- uses: actions/[email protected]
with:
path: hermes
- name: Run Hermes regression tests
run: |-
cmake -S hermes -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --target check-hermes all -j 4
cmake -S hermes -GNinja -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --target check-hermes all
- name: Run Hermes regression tests (JIT enabled)
run: |-
cmake -S hermes -GNinja -B build -DCMAKE_BUILD_TYPE=Debug -DHERMESVM_ALLOW_JIT=2
export LIT_HERMES_EXTRA_FLAGS="-Xforce-jit"
cmake --build build --target check-hermes all
test-linux-test262:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
with:
path: hermes
- name: Setup dependencies
run: |-
sudo apt update
sudo apt install -y git openssh-client cmake build-essential \
libreadline-dev libicu-dev zip python3 ninja-build
# Check out test262 at a pinned revision to reduce flakiness
git clone https://github.com/tc39/test262
cd test262
git checkout 62626e083bd506124aac6c799464d76c2c42851b
- name: Run test262 with Intl
run: |-
cmake -S hermes -GNinja -B build -DHERMES_ENABLE_INTL=ON -DCMAKE_CXX_FLAGS=-O2 -DCMAKE_C_FLAGS=-O2 -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build
# Not running Hermes test until more of Intl is built out:
# toLocaleLowerCase and toLocaleUpperCase are the two main ones.
# cmake --build ./build --target check-hermes
python3 hermes/utils/test_runner.py --test-intl test262/test -b build/bin
test-linux-arm-test262:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/[email protected]
with:
path: hermes
- name: Setup dependencies
run: |-
sudo apt update
sudo apt install -y git openssh-client cmake build-essential \
libreadline-dev libicu-dev zip python3 ninja-build
# Check out test262 at a pinned revision to reduce flakiness
git clone https://github.com/tc39/test262
cd test262
git checkout 62626e083bd506124aac6c799464d76c2c42851b
- name: Run test262 with Intl
run: |-
cmake -S hermes -GNinja -B build -DHERMES_ENABLE_INTL=ON -DCMAKE_CXX_FLAGS=-O2 -DCMAKE_C_FLAGS=-O2 -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build
# Not running Hermes test until more of Intl is built out:
# toLocaleLowerCase and toLocaleUpperCase are the two main ones.
# cmake --build ./build --target check-hermes
python3 hermes/utils/test_runner.py --test-intl test262/test -b build/bin
- name: Run test262 with Intl (JIT enabled)
run: |-
cmake -S hermes -GNinja -B build -DHERMES_ENABLE_INTL=ON -DCMAKE_CXX_FLAGS=-O2 -DCMAKE_C_FLAGS=-O2 -DHERMESVM_ALLOW_JIT=2 -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build
# Not running Hermes test until more of Intl is built out:
# toLocaleLowerCase and toLocaleUpperCase are the two main ones.
# cmake --build ./build --target check-hermes
python3 hermes/utils/test_runner.py --test-intl test262/test -b build/bin --vm-args="-Xforce-jit"
2 changes: 2 additions & 0 deletions lib/Platform/Intl/impl_icu/IntlUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include "IntlUtils.h"

#include <cstdint>

namespace hermes {
namespace platform_intl {
namespace impl_icu {
Expand Down

0 comments on commit 54510d7

Please sign in to comment.