Skip to content

Commit b50eb76

Browse files
authored
build: add V8 runtime. (#204)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 827e603 commit b50eb76

File tree

5 files changed

+1131
-3
lines changed

5 files changed

+1131
-3
lines changed

.github/workflows/cpp.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
fail-fast: false
6767
matrix:
6868
include:
69+
- name: 'V8 on Linux'
70+
runtime: 'v8'
71+
os: ubuntu-20.04
72+
- name: 'V8 on macOS'
73+
runtime: 'v8'
74+
os: macos-11
6975
- name: 'WAMR on Linux'
7076
runtime: 'wamr'
7177
os: ubuntu-20.04
@@ -107,4 +113,4 @@ jobs:
107113
108114
- name: Test (signed Wasm module)
109115
run: |
110-
bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=//...@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test
116+
bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test

bazel/dependencies.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@
1414

1515
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
1616
load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates")
17+
load("@rules_python//python:pip.bzl", "pip_install")
1718
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
1819

1920
def proxy_wasm_cpp_host_dependencies():
2021
protobuf_deps()
2122
rust_repositories()
2223
proxy_wasm_cpp_host_fetch_remote_crates()
24+
25+
pip_install(
26+
name = "v8_python_deps",
27+
extra_pip_args = ["--require-hashes"],
28+
requirements = "@v8//:bazel/requirements.txt",
29+
)

0 commit comments

Comments
 (0)