6868 WAMR_COMPILER_TEST_OPTIONS : " -s wamr_compiler -S -b -P"
6969 GC_TEST_OPTIONS : " -s spec -G -b -P"
7070 MEMORY64_TEST_OPTIONS : " -s spec -W -b -P"
71+ MULTI_MEMORY_TEST_OPTIONS : " -s spec -E -b -P"
7172
7273jobs :
7374 build_llvm_libraries_on_ubuntu_2204 :
@@ -148,6 +149,7 @@ jobs:
148149 " -DWAMR_BUILD_TAIL_CALL=1" ,
149150 " -DWAMR_DISABLE_HW_BOUND_CHECK=1" ,
150151 " -DWAMR_BUILD_MEMORY64=1" ,
152+ " -DWAMR_BUILD_MULTI_MEMORY=1" ,
151153 ]
152154 os : [ubuntu-22.04]
153155 platform : [android, linux]
@@ -206,11 +208,9 @@ jobs:
206208 make_options_feature : " -DWAMR_BUILD_MINI_LOADER=1"
207209 - make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
208210 make_options_feature : " -DWAMR_BUILD_MINI_LOADER=1"
209- # Memory64 only on CLASSIC INTERP mode, and only on 64-bit platform
211+ # Memory64 only on CLASSIC INTERP and AOT mode, and only on 64-bit platform
210212 - make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
211213 platform : android
212- - make_options_run_mode : $AOT_BUILD_OPTIONS
213- make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
214214 - make_options_run_mode : $FAST_INTERP_BUILD_OPTIONS
215215 make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
216216 - make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
@@ -221,6 +221,21 @@ jobs:
221221 make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
222222 - make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
223223 make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
224+ # Multi memory only on CLASSIC INTERP mode, and only on 64-bit platform
225+ - make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
226+ platform : android
227+ - make_options_run_mode : $AOT_BUILD_OPTIONS
228+ make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
229+ - make_options_run_mode : $FAST_INTERP_BUILD_OPTIONS
230+ make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
231+ - make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
232+ make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
233+ - make_options_run_mode : $LLVM_LAZY_JIT_BUILD_OPTIONS
234+ make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
235+ - make_options_run_mode : $LLVM_EAGER_JIT_BUILD_OPTIONS
236+ make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
237+ - make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
238+ make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
224239 # Fast-JIT and Multi-Tier-JIT mode don't support android
225240 - make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
226241 platform : android
@@ -593,6 +608,7 @@ jobs:
593608 $WASI_TEST_OPTIONS,
594609 $GC_TEST_OPTIONS,
595610 $MEMORY64_TEST_OPTIONS,
611+ $MULTI_MEMORY_TEST_OPTIONS,
596612 ]
597613 wasi_sdk_release :
598614 [
@@ -640,18 +656,30 @@ jobs:
640656 test_option : $MEMORY64_TEST_OPTIONS
641657 - running_mode : " multi-tier-jit"
642658 test_option : $MEMORY64_TEST_OPTIONS
659+ # aot, fast-interp, fast-jit, llvm-jit, multi-tier-jit don't support Multi Memory
660+ - running_mode : " aot"
661+ test_option : $MULTI_MEMORY_TEST_OPTIONS
662+ - running_mode : " fast-interp"
663+ test_option : $MULTI_MEMORY_TEST_OPTIONS
664+ - running_mode : " fast-jit"
665+ test_option : $MULTI_MEMORY_TEST_OPTIONS
666+ - running_mode : " jit"
667+ test_option : $MULTI_MEMORY_TEST_OPTIONS
668+ - running_mode : " multi-tier-jit"
669+ test_option : $MULTI_MEMORY_TEST_OPTIONS
670+
643671 steps :
644672 - name : checkout
645673 uses : actions/checkout@v4
646674
647675 - name : Set-up OCaml
648676 uses : ocaml/setup-ocaml@v3
649- if : matrix.test_option == '$GC_TEST_OPTIONS' || matrix.test_option == '$MEMORY64_TEST_OPTIONS'
677+ if : matrix.test_option == '$GC_TEST_OPTIONS'
650678 with :
651679 ocaml-compiler : 4.13
652680
653681 - name : Set-up Ocamlbuild
654- if : matrix.test_option == '$GC_TEST_OPTIONS' || matrix.test_option == '$MEMORY64_TEST_OPTIONS'
682+ if : matrix.test_option == '$GC_TEST_OPTIONS'
655683 run : opam install ocamlbuild dune menhir
656684
657685 - name : download and install wasi-sdk
@@ -717,13 +745,13 @@ jobs:
717745
718746 - name : run tests
719747 timeout-minutes : 30
720- if : matrix.test_option != '$GC_TEST_OPTIONS' && matrix.test_option != '$MEMORY64_TEST_OPTIONS'
748+ if : matrix.test_option != '$GC_TEST_OPTIONS'
721749 run : ./test_wamr.sh ${{ matrix.test_option }} -t ${{ matrix.running_mode }}
722750 working-directory : ./tests/wamr-test-suites
723751
724- - name : run gc or memory64 tests
752+ - name : run gc tests
725753 timeout-minutes : 20
726- if : matrix.test_option == '$GC_TEST_OPTIONS' || matrix.test_option == '$MEMORY64_TEST_OPTIONS'
754+ if : matrix.test_option == '$GC_TEST_OPTIONS'
727755 run : |
728756 eval $(opam env)
729757 ./test_wamr.sh ${{ matrix.test_option }} -t ${{ matrix.running_mode }}
0 commit comments