|
|
@@ -338,7 +338,9 @@ jobs:
|
|
|
]
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
strategy:
|
|
|
+ fail-fast: false
|
|
|
matrix:
|
|
|
+ sanitizer: ["", "ubsan"]
|
|
|
make_options: [
|
|
|
# Running mode
|
|
|
$AOT_BUILD_OPTIONS,
|
|
|
@@ -363,6 +365,7 @@ jobs:
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2004.outputs.cache_key }}
|
|
|
- os: ubuntu-22.04
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
|
|
|
+
|
|
|
steps:
|
|
|
- name: checkout
|
|
|
uses: actions/checkout@v3
|
|
|
@@ -395,15 +398,16 @@ jobs:
|
|
|
if: (!endsWith(matrix.make_options, '_INTERP_BUILD_OPTIONS'))
|
|
|
run: |
|
|
|
mkdir build && cd build
|
|
|
- cmake ..
|
|
|
+ cmake -DSANITIZER="${{matrix.sanitizer}}" ..
|
|
|
cmake --build . --config Release --parallel 4
|
|
|
working-directory: wamr-compiler
|
|
|
|
|
|
- name: Build Sample [wasm-c-api]
|
|
|
run: |
|
|
|
- cmake -S . -B build ${{ matrix.make_options }}
|
|
|
+ VERBOSE=1
|
|
|
+ cmake -S . -B build ${{ matrix.make_options }} -DSANITIZER="${{matrix.sanitizer}}"
|
|
|
cmake --build build --config Release --parallel 4
|
|
|
- ctest --test-dir build
|
|
|
+ ctest --test-dir build --output-on-failure
|
|
|
working-directory: samples/wasm-c-api
|
|
|
|
|
|
build_samples_others:
|