68
68
WAMR_COMPILER_TEST_OPTIONS : " -s wamr_compiler -S -b -P"
69
69
GC_TEST_OPTIONS : " -s spec -G -b -P"
70
70
MEMORY64_TEST_OPTIONS : " -s spec -W -b -P"
71
+ MULTI_MEMORY_TEST_OPTIONS : " -s spec -E -b -P"
71
72
72
73
jobs :
73
74
build_llvm_libraries_on_ubuntu_2204 :
@@ -148,6 +149,7 @@ jobs:
148
149
" -DWAMR_BUILD_TAIL_CALL=1" ,
149
150
" -DWAMR_DISABLE_HW_BOUND_CHECK=1" ,
150
151
" -DWAMR_BUILD_MEMORY64=1" ,
152
+ " -DWAMR_BUILD_MULTI_MEMORY=1" ,
151
153
]
152
154
os : [ubuntu-22.04]
153
155
platform : [android, linux]
@@ -206,11 +208,9 @@ jobs:
206
208
make_options_feature : " -DWAMR_BUILD_MINI_LOADER=1"
207
209
- make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
208
210
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
210
212
- make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
211
213
platform : android
212
- - make_options_run_mode : $AOT_BUILD_OPTIONS
213
- make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
214
214
- make_options_run_mode : $FAST_INTERP_BUILD_OPTIONS
215
215
make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
216
216
- make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
@@ -221,6 +221,21 @@ jobs:
221
221
make_options_feature : " -DWAMR_BUILD_MEMORY64=1"
222
222
- make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
223
223
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"
224
239
# Fast-JIT and Multi-Tier-JIT mode don't support android
225
240
- make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
226
241
platform : android
@@ -593,6 +608,7 @@ jobs:
593
608
$WASI_TEST_OPTIONS,
594
609
$GC_TEST_OPTIONS,
595
610
$MEMORY64_TEST_OPTIONS,
611
+ $MULTI_MEMORY_TEST_OPTIONS,
596
612
]
597
613
wasi_sdk_release :
598
614
[
@@ -640,18 +656,30 @@ jobs:
640
656
test_option : $MEMORY64_TEST_OPTIONS
641
657
- running_mode : " multi-tier-jit"
642
658
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
+
643
671
steps :
644
672
- name : checkout
645
673
uses : actions/checkout@v4
646
674
647
675
- name : Set-up OCaml
648
676
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'
650
678
with :
651
679
ocaml-compiler : 4.13
652
680
653
681
- 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'
655
683
run : opam install ocamlbuild dune menhir
656
684
657
685
- name : download and install wasi-sdk
@@ -717,13 +745,13 @@ jobs:
717
745
718
746
- name : run tests
719
747
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'
721
749
run : ./test_wamr.sh ${{ matrix.test_option }} -t ${{ matrix.running_mode }}
722
750
working-directory : ./tests/wamr-test-suites
723
751
724
- - name : run gc or memory64 tests
752
+ - name : run gc tests
725
753
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'
727
755
run : |
728
756
eval $(opam env)
729
757
./test_wamr.sh ${{ matrix.test_option }} -t ${{ matrix.running_mode }}
0 commit comments