Skip to content

Commit e88166d

Browse files
committed
Merge branch main into dev/thread_suspension
2 parents 6478f32 + 529fa9d commit e88166d

File tree

143 files changed

+4560
-1656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+4560
-1656
lines changed

.github/workflows/build_docker_images.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Build and save Docker image(wasm-debug-server:${{ inputs.ver_num }}) to tar file
2727
run: |

.github/workflows/build_iwasm_release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
build:
3636
runs-on: ${{ inputs.runner }}
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939

4040
- name: get cached LLVM libraries
4141
id: retrieve_llvm_libs
42-
uses: actions/cache@v3
42+
uses: actions/cache@v4
4343
with:
4444
path: |
4545
./core/deps/llvm/build/bin

.github/workflows/build_llvm_libraries.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: checkout
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

3636
- name: install dependencies
3737
run: /usr/bin/env python3 -m pip install -r requirements.txt
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Cache LLVM libraries
5454
id: retrieve_llvm_libs
55-
uses: actions/cache@v3
55+
uses: actions/cache@v4
5656
with:
5757
path: |
5858
./core/deps/llvm/build/bin
@@ -62,15 +62,15 @@ jobs:
6262
./core/deps/llvm/build/share
6363
key: ${{ steps.create_lib_cache_key.outputs.key}}
6464

65-
- uses: actions/cache@v3
65+
- uses: actions/cache@v4
6666
with:
6767
path: ~/.ccache
6868
key: 0-ccache-${{ inputs.os }}-${{ steps.get_last_commit.outputs.last_commit }}
6969
restore-keys: |
7070
0-ccache-${{ inputs.os }}
7171
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'ubuntu-20.04'
7272

73-
- uses: actions/cache@v3
73+
- uses: actions/cache@v4
7474
with:
7575
path: ~/.cache/ccache
7676
key: 0-ccache-${{ inputs.os }}-${{ steps.get_last_commit.outputs.last_commit }}
@@ -82,7 +82,7 @@ jobs:
8282
- run: sudo apt install -y ccache ninja-build
8383
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && startsWith(inputs.os, 'ubuntu') && inputs.container_image == ''
8484

85-
- uses: actions/cache@v3
85+
- uses: actions/cache@v4
8686
with:
8787
path: ~/Library/Caches/ccache
8888
key: 0-ccache-${{ inputs.os }}-${{ steps.get_last_commit.outputs.last_commit }}

.github/workflows/build_wamr_lldb.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
PYTHON_UBUNTU_STANDALONE_BUILD: https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.10.11+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz
4848
PYTHON_MACOS_STANDALONE_BUILD: https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.10.11+20230507-x86_64-apple-darwin-install_only.tar.gz
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151

5252
- name: download and install wasi-sdk
5353
run: |
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Cache build
6262
id: lldb_build_cache
63-
uses: actions/cache@v3
63+
uses: actions/cache@v4
6464
with:
6565
path: |
6666
./core/deps/llvm-project/build/bin

.github/workflows/build_wamr_sdk.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
build:
3636
runs-on: ${{ inputs.runner }}
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939

4040
- name: download and install wasi-sdk
4141
run: |

.github/workflows/build_wamr_vscode_ext.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
build:
1919
runs-on: ubuntu-22.04
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Use Node.js 16.x
2424
uses: actions/setup-node@v3

.github/workflows/build_wamrc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
build:
3636
runs-on: ${{ inputs.runner }}
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939

4040
- name: get cached LLVM libraries
4141
id: retrieve_llvm_libs
42-
uses: actions/cache@v3
42+
uses: actions/cache@v4
4343
with:
4444
path: |
4545
./core/deps/llvm/build/bin

.github/workflows/coding_guidelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-20.04
2020
steps:
2121
- name: checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525

.github/workflows/compilation_on_android_ubuntu.yml

+25-19
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ jobs:
8585
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
8686
steps:
8787
- name: checkout
88-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
8989

9090
# since jobs.id can't contain the dot character
9191
# it is hard to use `format` to assemble the cache key
9292
- name: Get LLVM libraries
9393
id: retrieve_llvm_libs
94-
uses: actions/cache@v3
94+
uses: actions/cache@v4
9595
with:
9696
path: |
9797
./core/deps/llvm/build/bin
@@ -213,13 +213,13 @@ jobs:
213213
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
214214
steps:
215215
- name: checkout
216-
uses: actions/checkout@v3
216+
uses: actions/checkout@v4
217217

218218
# only download llvm cache when needed
219219
- name: Get LLVM libraries
220220
id: retrieve_llvm_libs
221221
if: endsWith(matrix.make_options_run_mode, '_JIT_BUILD_OPTIONS')
222-
uses: actions/cache@v3
222+
uses: actions/cache@v4
223223
with:
224224
path: |
225225
./core/deps/llvm/build/bin
@@ -284,12 +284,12 @@ jobs:
284284

285285
steps:
286286
- name: checkout
287-
uses: actions/checkout@v3
287+
uses: actions/checkout@v4
288288

289289
- name: Get LLVM libraries
290290
id: retrieve_llvm_libs
291291
if: (!endsWith(matrix.make_options, '_INTERP_BUILD_OPTIONS'))
292-
uses: actions/cache@v3
292+
uses: actions/cache@v4
293293
with:
294294
path: |
295295
./core/deps/llvm/build/bin
@@ -322,7 +322,7 @@ jobs:
322322
run: |
323323
VERBOSE=1
324324
cmake -S . -B build ${{ matrix.make_options }}
325-
cmake --build build --config Release --parallel 4
325+
cmake --build build --config Debug --parallel 4
326326
ctest --test-dir build --output-on-failure
327327
working-directory: samples/wasm-c-api
328328

@@ -350,7 +350,7 @@ jobs:
350350
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
351351
steps:
352352
- name: checkout
353-
uses: actions/checkout@v3
353+
uses: actions/checkout@v4
354354

355355
- name: download and install wasi-sdk
356356
run: |
@@ -367,7 +367,7 @@ jobs:
367367
sudo mv wabt-1.0.31 wabt
368368
- name: Get LLVM libraries
369369
id: retrieve_llvm_libs
370-
uses: actions/cache@v3
370+
uses: actions/cache@v4
371371
with:
372372
path: |
373373
./core/deps/llvm/build/bin
@@ -393,23 +393,23 @@ jobs:
393393
cd samples/file
394394
mkdir build && cd build
395395
cmake ..
396-
cmake --build . --config Release --parallel 4
396+
cmake --build . --config Debug --parallel 4
397397
./src/iwasm -f wasm-app/file.wasm -d .
398398
399399
- name: Build Sample [multi-thread]
400400
run: |
401401
cd samples/multi-thread
402402
mkdir build && cd build
403403
cmake ..
404-
cmake --build . --config Release --parallel 4
404+
cmake --build . --config Debug --parallel 4
405405
./iwasm wasm-apps/test.wasm
406406
407407
- name: Build Sample [multi-module]
408408
run: |
409409
cd samples/multi-module
410410
mkdir build && cd build
411411
cmake .. -DWAMR_BUILD_AOT=1
412-
cmake --build . --config Release --parallel 4
412+
cmake --build . --config Debug --parallel 4
413413
./multi_module mC.wasm
414414
./multi_module mC.aot
415415
@@ -418,15 +418,15 @@ jobs:
418418
cd samples/spawn-thread
419419
mkdir build && cd build
420420
cmake ..
421-
cmake --build . --config Release --parallel 4
421+
cmake --build . --config Debug --parallel 4
422422
./spawn_thread
423423
424424
- name: Build Sample [ref-types]
425425
run: |
426426
cd samples/ref-types
427427
mkdir build && cd build
428428
cmake ..
429-
cmake --build . --config Release --parallel 4
429+
cmake --build . --config Debug --parallel 4
430430
./hello
431431
432432
- name: Build Sample [simple]
@@ -441,7 +441,7 @@ jobs:
441441
cd samples/wasi-threads
442442
mkdir build && cd build
443443
cmake ..
444-
cmake --build . --config Release --parallel 4
444+
cmake --build . --config Debug --parallel 4
445445
./iwasm wasm-apps/no_pthread.wasm
446446
447447
- name: Build Sample [shared-module]
@@ -450,6 +450,12 @@ jobs:
450450
./build.sh
451451
./run.sh
452452
453+
- name: Build Sample [terminate]
454+
run: |
455+
cd samples/terminate
456+
./build.sh
457+
./run.sh
458+
453459
test:
454460
needs:
455461
[
@@ -513,7 +519,7 @@ jobs:
513519
test_option: $SIMD_TEST_OPTIONS
514520
steps:
515521
- name: checkout
516-
uses: actions/checkout@v3
522+
uses: actions/checkout@v4
517523

518524
- name: download and install wasi-sdk
519525
if: matrix.test_option == '$WASI_TEST_OPTIONS'
@@ -548,7 +554,7 @@ jobs:
548554
- name: Get LLVM libraries
549555
if: env.USE_LLVM == 'true'
550556
id: retrieve_llvm_libs
551-
uses: actions/cache@v3
557+
uses: actions/cache@v4
552558
with:
553559
path: |
554560
./core/deps/llvm/build/bin
@@ -610,7 +616,7 @@ jobs:
610616

611617
steps:
612618
- name: checkout
613-
uses: actions/checkout@v3
619+
uses: actions/checkout@v4
614620

615621
- name: install dependencies
616622
run: |
@@ -629,7 +635,7 @@ jobs:
629635

630636
- name: Cache LLDB
631637
id: cache-lldb
632-
uses: actions/cache@v3
638+
uses: actions/cache@v4
633639
env:
634640
cache-name: cache-lldb-vscode
635641
with:

0 commit comments

Comments
 (0)