Skip to content
Open
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
84 changes: 38 additions & 46 deletions .github/workflows/compilation_on_android_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ jobs:
arch: "X86"

build_wamrc:
needs:
[build_llvm_libraries_on_ubuntu_2204]
needs: [build_llvm_libraries_on_ubuntu_2204]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -129,8 +128,7 @@ jobs:
working-directory: wamr-compiler

build_iwasm:
needs:
[build_llvm_libraries_on_ubuntu_2204]
needs: [build_llvm_libraries_on_ubuntu_2204]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -157,8 +155,6 @@ jobs:
"-DWAMR_BUILD_MEMORY_PROFILING=1",
"-DWAMR_BUILD_MULTI_MODULE=1",
"-DWAMR_BUILD_PERF_PROFILING=1",
"-DWAMR_BUILD_REF_TYPES=1",
"-DWAMR_BUILD_SIMD=1",
"-DWAMR_BUILD_LIB_SIMDE=1",
"-DWAMR_BUILD_TAIL_CALL=1",
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
Expand All @@ -171,8 +167,7 @@ jobs:
os: [ubuntu-22.04]
platform: [android, linux]
exclude:
# incompatible feature and platform
# incompatible mode and feature
# incompatible feature and platform and mode
# MULTI_MODULE only on INTERP mode and AOT mode
- make_options_run_mode: $FAST_JIT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
Expand All @@ -182,9 +177,6 @@ jobs:
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
- make_options_run_mode: $MULTI_TIER_JIT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
# SIMD only on JIT/AOT/fast interpreter mode
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_SIMD=1"
# DEBUG_INTERP only on CLASSIC INTERP mode
- make_options_run_mode: $AOT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
Expand Down Expand Up @@ -268,6 +260,15 @@ jobs:
include:
- os: ubuntu-22.04
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
# classic interp doesn't support SIMD
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0"
# fast jit doesn't support SIMD
- make_options_run_mode: $FAST_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0"
# multi-tier jit doesn't support SIMD
- make_options_run_mode: $MULTI_TIER_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0"
steps:
- name: checkout
uses: actions/checkout@v5
Expand All @@ -294,7 +295,7 @@ jobs:
if: matrix.platform == 'linux'
run: |
mkdir build && cd build
cmake .. -DCMAKE_C_FLAGS="-Werror" ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }}
cmake .. -DCMAKE_C_FLAGS="-Werror" ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options}}
cmake --build . --config Release --parallel 4
working-directory: product-mini/platforms/${{ matrix.platform }}

Expand All @@ -308,20 +309,13 @@ jobs:
working-directory: product-mini/platforms/${{ matrix.platform }}

build_unit_tests:
needs:
[
build_llvm_libraries_on_ubuntu_2204,
build_wamrc
]
needs: [build_llvm_libraries_on_ubuntu_2204, build_wamrc]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
build_target: [
"X86_64",
"X86_32",
]
build_target: ["X86_64", "X86_32"]
include:
- os: ubuntu-22.04
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
Expand Down Expand Up @@ -350,7 +344,7 @@ jobs:
uses: ./.github/actions/install-wasi-sdk-wabt
with:
os: ${{ matrix.os }}

- name: Build wamrc
run: |
mkdir build && cd build
Expand All @@ -374,16 +368,15 @@ jobs:
working-directory: tests/unit

build_regression_tests:
needs:
[build_llvm_libraries_on_ubuntu_2204]
needs: [build_llvm_libraries_on_ubuntu_2204]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
include:
- os: ubuntu-22.04
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}

steps:
- name: checkout
uses: actions/checkout@v5
Expand All @@ -403,24 +396,19 @@ jobs:
- name: Quit if cache miss
if: (steps.retrieve_llvm_libs.outputs.cache-hit != 'true')
run: echo "::error::can not get prebuilt llvm libraries" && exit 1

- name: Build wamrc and iwasm
run: |
./build_wamr.sh
working-directory: tests/regression/ba-issues

- name: Run regression tests
run: |
python run.py
working-directory: tests/regression/ba-issues

build_samples_wasm_c_api:
needs:
[
build_iwasm,
build_llvm_libraries_on_ubuntu_2204,
build_wamrc,
]
needs: [build_iwasm, build_llvm_libraries_on_ubuntu_2204, build_wamrc]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -439,6 +427,20 @@ jobs:
include:
- os: ubuntu-22.04
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
# classic interp doesn't support SIMD
- make_options: $CLASSIC_INTERP_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0"
# fast jit doesn't support Multi-module and SIMD
- make_options: $FAST_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0 -DWAMR_BUILD_MULTI_MODULE=0"
# multi-tier jit doesn't support Multi-module and SIMD
- make_options: $MULTI_TIER_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0 -DWAMR_BUILD_MULTI_MODULE=0"
# LLVM JIT doesn't support Multi-module
- make_options: $LLVM_LAZY_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_MULTI_MODULE=0"
- make_options: $LLVM_EAGER_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_MULTI_MODULE=0"

steps:
- name: checkout
Expand Down Expand Up @@ -477,7 +479,7 @@ jobs:
- name: Build Sample [wasm-c-api]
run: |
VERBOSE=1
cmake -S . -B build ${{ matrix.make_options }}
cmake -S . -B build ${{ matrix.make_options }} ${{ matrix.extra_options }}
cmake --build build --config Debug --parallel 4
ctest --test-dir build --output-on-failure
working-directory: samples/wasm-c-api
Expand All @@ -488,12 +490,7 @@ jobs:
working-directory: samples/printversion

build_samples_others:
needs:
[
build_iwasm,
build_llvm_libraries_on_ubuntu_2204,
build_wamrc,
]
needs: [build_iwasm, build_llvm_libraries_on_ubuntu_2204, build_wamrc]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -632,12 +629,7 @@ jobs:
./import-func-callback

test:
needs:
[
build_iwasm,
build_llvm_libraries_on_ubuntu_2204,
build_wamrc,
]
needs: [build_iwasm, build_llvm_libraries_on_ubuntu_2204, build_wamrc]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
28 changes: 19 additions & 9 deletions .github/workflows/compilation_on_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ jobs:
"-DWAMR_BUILD_MEMORY_PROFILING=1",
"-DWAMR_BUILD_MULTI_MODULE=1",
"-DWAMR_BUILD_PERF_PROFILING=1",
"-DWAMR_BUILD_REF_TYPES=1",
"-DWAMR_BUILD_SIMD=1",
"-DWAMR_BUILD_TAIL_CALL=1",
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
"-DWAMR_BUILD_EXTENDED_CONST_EXPR=1",
Expand All @@ -154,11 +152,6 @@ jobs:
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
- make_options_run_mode: $LLVM_EAGER_JIT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
# SIMD only on JIT/AOT mode
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_SIMD=1"
- make_options_run_mode: $FAST_INTERP_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_SIMD=1"
# DEBUG_INTERP only on CLASSIC INTERP mode
- make_options_run_mode: $AOT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
Expand Down Expand Up @@ -188,6 +181,9 @@ jobs:
include:
- os: macos-13
llvm_cache_key: ${{ needs.build_llvm_libraries_on_intel_macos.outputs.cache_key }}
# classic interp doesn't support SIMD
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0"
steps:
- name: checkout
uses: actions/checkout@v5
Expand All @@ -213,7 +209,7 @@ jobs:
- name: Build iwasm
run: |
mkdir build && cd build
cmake .. -DCMAKE_C_FLAGS="-Werror" ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }}
cmake .. -DCMAKE_C_FLAGS="-Werror" ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options }}
cmake --build . --config Release --parallel 4
working-directory: product-mini/platforms/${{ matrix.platform }}

Expand All @@ -240,6 +236,20 @@ jobs:
include:
- os: macos-13
llvm_cache_key: ${{ needs.build_llvm_libraries_on_intel_macos.outputs.cache_key }}
# classic interp doesn't support SIMD
- make_options: $CLASSIC_INTERP_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0"
# fast jit doesn't support Multi-module and SIMD
- make_options: $FAST_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0 -DWAMR_BUILD_MULTI_MODULE=0"
# multi-tier jit doesn't support Multi-module and SIMD
- make_options: $MULTI_TIER_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_SIMD=0 -DWAMR_BUILD_MULTI_MODULE=0"
# LLVM JIT doesn't support Multi-module
- make_options: $LLVM_LAZY_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_MULTI_MODULE=0"
- make_options: $LLVM_EAGER_JIT_BUILD_OPTIONS
extra_options: "-DWAMR_BUILD_MULTI_MODULE=0"

steps:
- name: checkout
Expand Down Expand Up @@ -278,7 +288,7 @@ jobs:
- name: Build Sample [wasm-c-api]
run: |
VERBOSE=1
cmake -S . -B build ${{ matrix.make_options }}
cmake -S . -B build ${{ matrix.make_options }} ${{ matrix.extra_options }}
cmake --build build --config Debug --parallel 4
ctest --test-dir build --output-on-failure
working-directory: samples/wasm-c-api
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/compilation_on_sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ jobs:
# MINI_LOADER only on INTERP mode
- make_options_run_mode: $AOT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_MINI_LOADER=1"
# FAST_JIT doesn't support MULTI_MODULE
- make_options_run_mode: $FAST_JIT_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
include:
# classic interp mode doesn't support SIMD
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
make_options_feature: "-DWAMR_BUILD_SIMD=0"
steps:
- name: checkout
uses: actions/checkout@v5
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/compilation_on_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
"-DWAMR_BUILD_CUSTOM_NAME_SECTION=1",
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
"-DWAMR_BUILD_REF_TYPES=1",
"-DWAMR_BUILD_SIMD=1",
"-DWAMR_BUILD_DEBUG_INTERP=1",
"-DWAMR_BUILD_LIB_PTHREAD=1",
"-DWAMR_BUILD_LIB_WASI_THREADS=1",
Expand Down
Loading
Loading