-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RISC-V (64bit) test environment in actions
Signed-off-by: HyukWoo Park <[email protected]>
- Loading branch information
1 parent
92602e2
commit 7e93af8
Showing
2 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,16 +34,16 @@ jobs: | |
- name: Install Packages | ||
run: | | ||
brew update | ||
brew install ninja pkg-config icu4c@75 | ||
brew install ninja pkg-config icu4c | ||
- name: Build x64 | ||
env: | ||
BUILD_OPTIONS: -DESCARGOT_WASM=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja | ||
run: | | ||
# check cpu | ||
sysctl -a | grep machdep.cpu | ||
# add icu path to pkg_config_path | ||
brew --prefix icu4c@75 | ||
export PKG_CONFIG_PATH="/usr/local/opt/icu4c@75/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
export PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig" | ||
echo $PKG_CONFIG_PATH | ||
cmake -H. -Bout/debug/ -DESCARGOT_MODE=debug $BUILD_OPTIONS | ||
ninja -Cout/debug/ | ||
$RUNNER --engine="./out/debug/escargot" new-es | ||
|
@@ -61,16 +61,16 @@ jobs: | |
- name: Install Packages | ||
run: | | ||
brew update | ||
brew install ninja pkg-config icu4c@75 | ||
brew install ninja pkg-config icu4c | ||
- name: Build arm64 | ||
env: | ||
BUILD_OPTIONS: -DESCARGOT_WASM=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja | ||
run: | | ||
# check cpu | ||
sysctl -a | grep machdep.cpu | ||
# add icu path to pkg_config_path | ||
brew --prefix icu4c@75 | ||
export PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c@75/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
export PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig" | ||
echo $PKG_CONFIG_PATH | ||
cmake -H. -Bout/debug/ -DESCARGOT_MODE=debug $BUILD_OPTIONS | ||
ninja -Cout/debug/ | ||
$RUNNER --engine="./out/debug/escargot" new-es | ||
|
@@ -437,6 +437,30 @@ jobs: | |
run: | | ||
GC_FREE_SPACE_DIVISOR=1 $RUNNER --engine="${{ github.workspace }}/out/escargot" --test262-extra-arg="--skip intl402" test262 chakracore spidermonkey v8 new-es | ||
build-test-on-riscv64-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Build in riscv64 container | ||
uses: uraimo/[email protected] | ||
with: | ||
arch: riscv64 | ||
distro: ubuntu22.04 | ||
|
||
# Install deps into the container. With the token, the container will be cached | ||
# The image is cached publically like a package | ||
githubToken: ${{ github.token }} | ||
|
||
install: | | ||
apt-get update | ||
apt-get install -y cmake build-essential ninja-build pkg-config python3 git libicu-dev | ||
run: | | ||
cmake -H. -Bout/riscv64 -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja | ||
ninja -Cout/riscv64 | ||
python3 ./tools/run-tests.py --engine="./out/riscv64/escargot" regression-tests new-es intl sunspider-js | ||
build-test-debugger: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters