75f5fa46ab
build(deps): bump github/codeql-action from 3.27.0 to 3.27.1 ( #3902 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.27.0 to 3.27.1.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.27.0...v3.27.1 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-13 15:11:11 +08:00
483c57de9f
build(deps): bump github/codeql-action from 3.26.13 to 3.27.0 ( #3888 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.13 to 3.27.0.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.26.13...v3.27.0 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 10:20:33 +08:00
fe13f6de25
build(deps): bump github/codeql-action from 3.26.12 to 3.26.13 ( #3869 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.12 to 3.26.13.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.26.12...v3.26.13 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 09:33:02 +08:00
b34b2c8e26
Add token permissions for CIs to fix issues reported by scorecard ( #3867 )
2024-10-22 09:13:55 +08:00
bb3f8d9198
release CI: Add another iwasm binary that supports Garbage Collection and Exception Handling ( #3866 )
...
As suggested in #3829 , in release CI, we add zip/tar.gz artifacts named
iwasm-gc-eh-{version}-{platform} for `iwasm` which supports features
garbage collection and exception handling(classic interpreter only).
Also, add a command line option to control GC heap size for `iwasm` on
the Windows platform.
2024-10-21 08:43:33 +08:00
1af474099b
Add Windows wamrc and iwasm build in release CI ( #3857 )
...
- For Windows, llvm libs need to cache more directories, so use a multi-line
environment variable for paths
- Remove conditionally build directories `win32build`, just use `build` for all platform
- Add Windows wamrc and iwasm(disable lib pthread semaphore and fast jit for now)
build in release CI
2024-10-17 10:01:56 +08:00
b038f2721b
Merge pull request #3823 from bytecodealliance/dev/shared_heap
...
Implement the shared heap feature for interpreter, aot and llvm jit.
Add below runtime APIs:
```C
wasm_shared_heap_t
wasm_runtime_create_shared_heap(SharedHeapInitArgs *init_args);
bool
wasm_runtime_attach_shared_heap(wasm_module_inst_t module_inst,
wasm_shared_heap_t shared_heap);
void
wasm_runtime_detach_shared_heap(wasm_module_inst_t module_inst);
uint64_t
wasm_runtime_shared_heap_malloc(wasm_module_inst_t module_inst, uint64_t size,
void **p_native_addr);
void
wasm_runtime_shared_heap_free(wasm_module_inst_t module_inst, uint64_t ptr);
```
And allow wasm app to call API shared_heap_malloc and shared_heap_free:
```C
void *shared_heap_malloc(uint32_t size);
void shared_heap_free(void *ptr);
```
2024-10-15 14:26:22 +08:00
0152e2c9f7
build(deps): bump github/codeql-action from 3.26.11 to 3.26.12 ( #3856 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.11 to 3.26.12.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.26.11...v3.26.12 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 21:54:19 +08:00
7d4b530855
build(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3 ( #3855 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4.4.0...v4.4.3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 21:53:46 +08:00
f9153fbff0
build(deps): bump github/codeql-action from 3.26.9 to 3.26.11 ( #3843 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.9 to 3.26.11.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v3.26.9...v3.26.11 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-08 09:08:37 +08:00
e0027f3694
Merge pull request #3828 from bytecodealliance/dependabot/github_actions/ossf/scorecard-action-2.4.0
...
build(deps): bump ossf/scorecard-action from 2.3.1 to 2.4.0
2024-10-05 08:36:52 +02:00
5f3d36b5a4
Merge pull request #3827 from bytecodealliance/dependabot/github_actions/actions/upload-artifact-4.4.0
...
build(deps): bump actions/upload-artifact from 3.1.0 to 4.4.0
2024-10-05 08:36:24 +02:00
2e60f37202
build(deps): bump ossf/scorecard-action from 2.3.1 to 2.4.0
...
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases )
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md )
- [Commits](0864cf1902...62b2cac7ed )
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-30 10:45:37 +00:00
2baac8d9e0
build(deps): bump actions/upload-artifact from 3.1.0 to 4.4.0
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3.1.0 to 4.4.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.0...v4.4.0 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-30 10:45:34 +00:00
bd8c7a3a64
build(deps): bump github/codeql-action from 2.2.4 to 3.26.9
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.2.4 to 3.26.9.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Commits](https://github.com/github/codeql-action/compare/v2.2.4...v3.26.9 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-30 10:45:28 +00:00
9ba36e284c
Implement shared heap for AOT ( #3815 )
2024-09-29 12:50:59 +08:00
5ce6f90bd6
Add scoreboard CI for supply-chain security ( #3819 )
2024-09-27 15:52:00 +08:00
c4aa1deda5
Add shared heap sample ( #3806 )
2024-09-20 16:13:20 +08:00
cd47438af9
spec_test_on_nuttx.yml: Disable riscv32_ilp32f for now ( #3777 )
...
It seems failing too frequently.
cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3776
2024-09-10 10:58:22 +08:00
cb71ca5822
CI: Disable parallel test in spectest for NuttX ( #3780 )
2024-09-09 21:58:07 +08:00
fed0fe953c
compilation_on_nuttx.yml: Update checkout action to suppress warnings ( #3765 )
2024-09-04 12:08:25 +08:00
cb3a69f778
CI: Freeze version of bloaty for NuttX compilation ( #3756 )
...
Fix the compilation error of this CI:
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/10575515238
```
/__w/wasm-micro-runtime/wasm-micro-runtime/bloaty/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:139:32: error: no matching function for call to 'max(long int, int)'
139 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
| ~~~~~~~~^~~~~~~~~~~~~~~~~
```
2024-08-28 16:05:07 +08:00
1329e1d3e1
Add support for multi-memory proposal in classic interpreter ( #3742 )
...
Implement multi-memory for classic-interpreter. Support core spec (and bulk memory) opcodes now,
and will support atomic opcodes, and add multi-memory export APIs in the future.
PS: Multi-memory spec test patched a lot for linking test to adapt for multi-module implementation.
2024-08-21 12:22:23 +08:00
f4383a9e62
Use node 18.x to build vscode extension ( #3735 )
...
Fix the issue of releasing wamr-ide vscode extension:
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/10467675321/job/28987014745
2024-08-20 17:03:28 +08:00
88caa0c53a
CI: Unify configuration stage for NuttX ( #3725 )
2024-08-19 10:35:18 +08:00
67c33a29e3
CI: Enable XIP spectest for RISCV32 ILP32F ( #3727 )
2024-08-19 09:52:38 +08:00
58ca02bc5f
Add support for RISCV32 ILP32F ( #3708 )
2024-08-15 15:17:42 +08:00
8a2e151de1
CI: Bump NuttX version to 12.6 ( #3684 )
2024-08-05 09:06:31 +08:00
08fad88d75
spec_test_on_nuttx.yml: Retire CONFIG_EOL_IS_LF ( #3676 )
...
It has been removed in nuttx while ago:
https://github.com/apache/nuttx/pull/8628
2024-08-02 09:54:07 +08:00
c3bd6b495b
spec_test_on_nuttx.yml: Replace sed with kconfig-tweak ( #3672 )
...
Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/3646
2024-07-31 09:45:11 +08:00
3b56e7c607
spec_test_on_nuttx.yml: Record more logs ( #3670 )
...
Upload artifacts including nuttx config/image and wasm/aot modules
for post-mortem investigations.
2024-07-27 15:38:24 +08:00
84b5221517
spec_test_on_nuttx.yml: Enable xip ( #3671 )
...
Related changes:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3662
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3666
2024-07-27 15:31:31 +08:00
22df091603
spec_test_on_nuttx.yml: Add xtensa ( #3665 )
...
Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/3608 .
2024-07-26 14:14:04 +08:00
2b5b771537
CI: Build llvm for xtensa ( #3637 )
2024-07-18 13:51:16 +08:00
68fccc4bc5
Fix night run CI ( #3640 )
...
Manually git clone and install dependencies instead of using git action on Ubuntu 14.04 runner.
2024-07-17 19:30:35 +08:00
fc34151df9
Bump ocaml/setup-ocaml from 2 to 3 ( #3604 )
...
Bumps [ocaml/setup-ocaml](https://github.com/ocaml/setup-ocaml ) from 2 to 3.
- [Release notes](https://github.com/ocaml/setup-ocaml/releases )
- [Changelog](https://github.com/ocaml/setup-ocaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ocaml/setup-ocaml/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: ocaml/setup-ocaml
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 11:24:15 +08:00
0712c7f361
Fix CI build and run unit tests ( #3499 )
2024-06-04 14:47:42 +08:00
082cfa1c4f
Correct nuttx repo names ( #3484 )
...
The nuttx repo had changed from https://github.com/apache/incubator-nuttx
to https://github.com/apache/nuttx .
2024-05-31 15:39:23 +08:00
6fdfedb08a
Fix codeql compilation error ( #3461 )
...
Update OS to ubuntu-22.04 and install `libgcc-12-dev lib32gcc-12-dev` instead
of `libgcc-11-dev lib32gcc-11-dev`.
And fix a bh_assert condition typo error.
ps.
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/9183310069/job/25253782329
2024-05-22 17:27:38 +08:00
b2eb7d838d
Update spec test to latest commit ( #3293 )
...
- Update spec test cases to commit bc76fd79cfe61033d7f4ad4a7e8fc4f996dc5ba8 on Apr. 3
- Update wabt binary to 1.0.34 to support newer spec cases
- Add comparison between table declared elem type and table elem segment value type
- Add a function to decide whether to execute test cases in a running mode
- Keep using interpreter in GC spec because wat2wasm in wabt can't compile if.wast w/o errors
- Re-factoring threads spec test case processing
- Since wabt 1.0.34 release isn't compatible with ubuntu 20.04, compile it from source code
- Disable CI to run aot multi-module temporarily, and will enable it in another PR
2024-05-17 10:40:47 +08:00
fe5e7a9981
Implement Memory64 support for AOT ( #3362 )
...
Refer to:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3266
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3091
2024-05-13 11:03:38 +08:00
1c2a8fca4e
Fix some more spelling issues ( #3393 )
2024-05-08 09:30:29 +08:00
ca61184ced
Fix some spelling issues ( #3385 )
...
Fix some of the spelling issues found by CSpell.
2024-05-06 07:56:48 +08:00
120b9659dd
A few native stack detection fixes for macOS/arm64 ( #3368 )
2024-04-26 19:37:55 +08:00
410ee580ae
Add wasm_runtime_detect_native_stack_overflow_size ( #3355 )
...
- Add a few API (https://github.com/bytecodealliance/wasm-micro-runtime/issues/3325 )
```c
wasm_runtime_detect_native_stack_overflow_size
wasm_runtime_detect_native_stack_overflow
```
- Adapt the runtime to use them
- Adapt samples/native-stack-overflow to use them
- Add a few missing overflow checks in the interpreters
- Build and run the sample on the CI
2024-04-26 16:00:58 +08:00
1b5ff93656
CI: Use macos-13 instead of macos-latest ( #3366 )
...
Our workflows assume macos-latest is intel, but now it's arm64.
Use macos-13, which is documented to be intel, instead.
reference:
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
2024-04-26 14:38:49 +08:00
f14a166466
Test more samples in nightly-run CI ( #3358 )
...
Build and run sample native-lib and wamr-app-framework's simple
in nightly-run CI.
2024-04-25 20:58:28 +08:00
9d6d3466ff
Fix a few native stack address calculations ( #3351 )
2024-04-24 16:39:38 +08:00
0aeef69d23
Update binary size info in README.md ( #3030 )
...
And also show size in CI with NuttX.
The size info is from bloaty, which is a tool to measure binary size.
Example usage and output (WAMR stuff only):
```
➜ sim bloaty -s file nuttx/nuttx -d compileunits -n 10000 --source-filter wamr
FILE SIZE VM SIZE
-------------- --------------
13.1% 108Ki 19.4% 14.6Ki wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c
12.2% 100Ki 0.1% 50 wamr/core/iwasm/common/wasm_c_api.c
10.6% 87.1Ki 8.7% 6.54Ki wamr/core/iwasm/common/wasm_runtime_common.c
9.2% 76.1Ki 12.6% 9.45Ki wamr/core/iwasm/aot/aot_loader.c
8.9% 73.6Ki 12.5% 9.38Ki wamr/core/iwasm/libraries/libc-wasi/libc_wasi_wrapper.c
7.1% 58.7Ki 9.0% 6.79Ki wamr/core/iwasm/aot/aot_runtime.c
3.6% 29.3Ki 5.6% 4.21Ki wamr/core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c
3.2% 26.2Ki 3.6% 2.73Ki wamr/core/shared/platform/common/posix/posix_socket.c
2.9% 24.0Ki 2.7% 2.01Ki wamr/core/iwasm/common/wasm_memory.c
2.8% 23.2Ki 2.3% 1.74Ki wamr/core/iwasm/common/wasm_application.c
2.6% 21.5Ki 3.3% 2.46Ki wamr/core/shared/platform/common/posix/posix_file.c
2.5% 20.4Ki 1.9% 1.45Ki wamr/core/iwasm/common/wasm_native.c
2.4% 20.0Ki 2.0% 1.51Ki wamr/core/iwasm/aot/arch/aot_reloc_riscv.c
2.1% 17.3Ki 1.6% 1.20Ki wamr/core/iwasm/common/wasm_shared_memory.c
2.0% 16.4Ki 2.4% 1.81Ki wamr/core/shared/mem-alloc/ems/ems_alloc.c
1.9% 15.9Ki 2.4% 1.81Ki wamr/product-mini/platforms/nuttx/main.c
1.7% 13.8Ki 1.4% 1.05Ki wamr/core/iwasm/aot/aot_intrinsic.c
1.5% 12.2Ki 0.4% 312 wamr/core/iwasm/common/wasm_exec_env.c
1.4% 11.8Ki 0.8% 618 wamr/core/shared/platform/common/posix/posix_thread.c
1.0% 8.20Ki 1.2% 952 wamr/core/shared/utils/bh_hashmap.c
0.9% 7.52Ki 0.8% 636 wamr/core/shared/utils/bh_vector.c
0.9% 7.46Ki 0.8% 618 wamr/core/shared/mem-alloc/ems/ems_kfc.c
0.8% 6.89Ki 1.0% 744 wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/blocking_op.c
0.8% 6.65Ki 0.5% 356 wamr/core/shared/platform/nuttx/nuttx_platform.c
0.5% 4.25Ki 0.4% 316 wamr/core/shared/utils/bh_common.c
0.4% 3.70Ki 0.3% 248 wamr/core/shared/utils/bh_log.c
0.4% 3.52Ki 0.4% 330 wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/random.c
0.4% 3.07Ki 0.1% 40 wamr/core/shared/mem-alloc/mem_alloc.c
0.3% 2.52Ki 0.3% 196 wamr/core/shared/utils/uncommon/bh_read_file.c
0.3% 2.36Ki 0.3% 216 wamr/core/shared/platform/common/posix/posix_clock.c
0.3% 2.27Ki 0.1% 106 wamr/core/shared/utils/bh_list.c
0.2% 1.91Ki 0.6% 430 wamr/core/shared/platform/common/libc-util/libc_errno.c
0.2% 1.78Ki 0.1% 94 wamr/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/str.c
0.2% 1.73Ki 0.0% 6 wamr/core/iwasm/common/wasm_blocking_op.c
0.2% 1.42Ki 0.1% 74 wamr/core/shared/utils/bh_bitmap.c
0.1% 1.02Ki 0.1% 82 wamr/core/shared/platform/common/posix/posix_time.c
0.1% 751 0.2% 138 wamr/core/iwasm/common/arch/invokeNative_riscv.S
100.0% 823Ki 100.0% 75.1Ki TOTAL
```
2024-04-23 17:15:53 +08:00
30426be82c
Refactor CodeQL CI ( #3319 )
...
- Move CodeQL scripts to the scripts directory
- Only report error in CI if it's a CodeQL reported issue and was not dismissed
before and is likely to be an actual error
2024-04-16 16:32:47 +08:00