Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ build:clang-tsan --linkopt -fsanitize=thread
build:clang-tsan --test_env=TSAN_OPTIONS=suppressions=bazel/tsan_suppressions.txt

# Use Clang-Tidy tool.
build:clang-tidy --config=clang
build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect
build:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=@proxy_wasm_cpp_host//:clang_tidy_config
build:clang-tidy --output_groups=report
build:clang-tidy --aspects //tools/lint:linters.bzl%clang_tidy
build:clang-tidy --output_groups=rules_lint_report
build:clang-tidy --config=hermetic-llvm

# Use GCC compiler.
build:gcc --action_env=BAZEL_COMPILER=gcc
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
7.7.1
4 changes: 1 addition & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies (Linux)
run: sudo apt update -y && sudo apt install -y clang-tidy-18 lld-18 && sudo ln -sf /usr/bin/lld-18 /usr/bin/lld

- name: set cache name
id: vars
# The cache tag consists of the following parts:
Expand All @@ -150,6 +147,7 @@ jobs:
- name: Bazel build
run: >
bazel build
--config=hermetic-llvm
--config clang-tidy
--define engine=multi
--disk_cache /tmp/bazel/cache
Expand Down
29 changes: 17 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
--test_output=errors
--config=clang
--disk_cache /tmp/bazel/cache
--config=hermetic-llvm
-c opt
$(bazel query 'kind(was.*_rust_binary, //test/test_data/...)')
$(bazel query 'kind(_optimized_wasm_cc_binary, //test/test_data/...)')
Expand Down Expand Up @@ -137,13 +138,13 @@ jobs:
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang-asan --define=crypto=system
flags: --config=hermetic-llvm --config=clang-asan --define=crypto=system
- name: 'NullVM on Linux/x86_64 with TSan'
engine: 'null'
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang-tsan
flags: --config=hermetic-llvm --config=clang-tsan
- name: 'NullVM on Windows/x86_64'
engine: 'null'
os: windows-2022
Expand Down Expand Up @@ -194,7 +195,7 @@ jobs:
- name: 'V8 on macOS/x86_64'
engine: 'v8'
repo: 'v8'
os: macos-13
os: macos-15
arch: x86_64
action: test
flags: --config=hermetic-llvm-macos
Expand All @@ -205,56 +206,59 @@ jobs:
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang
flags: --config=hermetic-llvm
- name: 'WAMR interp on macOS/x86_64'
engine: 'wamr-interp'
repo: 'com_github_bytecodealliance_wasm_micro_runtime'
os: macos-13
os: macos-15
arch: x86_64
action: test
flags: --config=hermetic-llvm-macos
- name: 'WAMR jit on Linux/x86_64'
engine: 'wamr-jit'
repo: 'com_github_bytecodealliance_wasm_micro_runtime'
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang
flags: --config=hermetic-llvm
deps: lld-18
cache: true
- name: 'WAMR jit on macOS/x86_64'
engine: 'wamr-jit'
repo: 'com_github_bytecodealliance_wasm_micro_runtime'
os: macos-13
os: macos-15
arch: x86_64
action: test
cache: true
flags: --config=hermetic-llvm-macos
- name: 'WasmEdge on Linux/x86_64'
engine: 'wasmedge'
repo: 'com_github_wasmedge_wasmedge'
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang
flags: --config=hermetic-llvm
- name: 'WasmEdge on macOS/x86_64'
engine: 'wasmedge'
repo: 'com_github_wasmedge_wasmedge'
os: macos-13
os: macos-15
arch: x86_64
action: test
flags: --config=hermetic-llvm
- name: 'Wasmtime on Linux/x86_64'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang -c opt
flags: --config=hermetic-llvm -c opt
- name: 'Wasmtime on Linux/x86_64 with ASan'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: ubuntu-24.04-16core
arch: x86_64
action: test
flags: --config=clang-asan --define=crypto=system
flags: --config=hermetic-llvm --config=clang-asan --define=crypto=system
- name: 'Wasmtime on Linux/aarch64'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
Expand All @@ -275,9 +279,10 @@ jobs:
- name: 'Wasmtime on macOS/x86_64'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: macos-13
os: macos-15
arch: x86_64
action: test
flags: --config=hermetic-llvm-macos

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ cc_library(
],
deps = [
":wasm_vm_headers",
"//external:wee8",
"@v8//:wee8",
],
)

Expand All @@ -151,7 +151,7 @@ cc_library(
],
deps = [
":wasm_vm_headers",
"//external:wamr",
"@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib",
],
)

Expand All @@ -178,7 +178,7 @@ cc_library(
}),
deps = [
":wasm_vm_headers",
"//external:wasmedge",
"@com_github_wasmedge_wasmedge//:wasmedge_lib",
],
)

Expand Down Expand Up @@ -217,7 +217,7 @@ cc_library(
}),
deps = [
":wasm_vm_headers",
"//external:wasmtime",
"@com_github_bytecodealliance_wasmtime//:wasmtime_lib",
],
)

Expand Down Expand Up @@ -276,7 +276,7 @@ cc_library(
}),
deps = [
":wasm_vm_headers",
"//external:prefixed_wasmtime",
"@com_github_bytecodealliance_wasmtime//:prefixed_wasmtime_lib",
],
)

Expand Down
5 changes: 5 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_depend

proxy_wasm_cpp_host_dependencies()

# Setup bazel_features internal repos (required for aspect_rules_lint)
load("@proxy_wasm_cpp_host//bazel:setup_features.bzl", "setup_bazel_features")

setup_bazel_features()

load("@proxy_wasm_cpp_host//bazel:dependencies_python.bzl", "proxy_wasm_cpp_host_dependencies_python")

proxy_wasm_cpp_host_dependencies_python()
Expand Down
Loading
Loading