Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
68e4534
Iterate callstack API
Jan 17, 2025
d0c6da1
wamr bool type
Jan 27, 2025
1f4d3dd
clang-format
Jan 27, 2025
1b82ccc
meaning of the return bool type in the callback
Jan 27, 2025
813831d
keep devs notes out of public API
Jan 27, 2025
bf6b155
format
Jan 27, 2025
c8b8731
support standard frames as well
Jan 27, 2025
9ff8052
format
Jan 27, 2025
6bfc088
Calculate func_index instead of adding an extra field to wasm frame
Jan 28, 2025
b6daacb
ignore frames with no function
Jan 28, 2025
5bfbfd5
update typo in the comment
Jan 28, 2025
478b373
update signature
Jan 28, 2025
b9039f9
Merge branch 'main' into godjan/iterate_callstack
Jan 28, 2025
fb6c05e
add correct frame size for aot standard frames
Jan 28, 2025
f7204bd
standard frame is not supported when GC is enabled
Jan 28, 2025
b2c7cb2
Use wasm32-wasip1 instead of wasm32-wasi target for rust code (#4057)
loganek Feb 5, 2025
c6712b4
add a validator for aot module (#3995)
lum1n0us Feb 5, 2025
41b2c6d
Show wasm proposals status during compilation and execution (#3989)
lum1n0us Feb 5, 2025
67cd504
initial
palchikov Jan 29, 2025
e64685f
Add versioning support and update CMake configuration
lum1n0us Nov 26, 2024
b144e61
Add versioning information for libraries and executables across multi…
lum1n0us Dec 24, 2024
77e8a7d
Refactor versioning documentation and adopt semantic versioning guide…
lum1n0us Dec 26, 2024
4f7c5af
Remove deprecated version.h file and update versioning documentation
lum1n0us Jan 10, 2025
10f12c0
Add version.h and update versioning documentation for embedded platforms
lum1n0us Jan 17, 2025
2c2829f
Add workflow to confirm version.h is in sync and integrate it into An…
lum1n0us Jan 20, 2025
171d356
Cleanup check_version_h workflow by removing unnecessary outputs and …
lum1n0us Jan 21, 2025
267379c
Merge branch 'main' into godjan/iterate_callstack
Feb 5, 2025
376385c
Update memory allocation functions to use allocator user data (#4043)
lum1n0us Feb 6, 2025
c99ae24
[fuzzing] execute every exported function (#3959)
lum1n0us Feb 6, 2025
e6a47d5
In wasm32, fix potential conversion overflow when enlarging 65536 pag…
TianlongLiang Feb 6, 2025
7b724e2
fix(aot): ensure value_cmp does not exceed br_count in branch table c…
lum1n0us Feb 6, 2025
aa05360
build(deps): Bump github/codeql-action from 3.28.8 to 3.28.9 (#4074)
dependabot[bot] Feb 11, 2025
1465c3c
Unit test:type matching issue and code redundancy (#4079)
yangkun27 Feb 14, 2025
71bc3c2
Add a conditional check for the macro __STDC_VERSION__ (#4080)
yangkun27 Feb 14, 2025
46904dc
build_llvm.py: Allow to build xtensa target on non-xtensa host
no1wudi Feb 14, 2025
1971cac
Merge pull request #4086 from no1wudi/fix
no1wudi Feb 15, 2025
d86bd7c
fix(build_llvm.py): clean up whitespace and formatting in build script
no1wudi Feb 15, 2025
159f589
[gc] Subtyping fix (#4075)
vouillon Feb 17, 2025
48b75e0
Merge pull request #4087 from no1wudi/fix
no1wudi Feb 17, 2025
964037c
feat: add support for EXTERNREF value type and enable AOT validator i…
lum1n0us Feb 17, 2025
45db4ba
fix(unit-test): libc_builtin_test issues (#4073)
peter-tatrai Feb 17, 2025
ff10b86
fix(build_llvm_libraries.yml): Correct script path for build_llvm.py
no1wudi Feb 17, 2025
d0e2a72
fix(aot_emit_aot_file): prevent buffer emission for zero byte_count (…
lum1n0us Feb 20, 2025
f2ef9ee
Cmake improvements (#4076)
peter-tatrai Feb 21, 2025
d9c01b3
fix: when load aot init expr,no type_idx set. (#4094)
chenliuyang1989 Feb 21, 2025
32338bb
Copy read only API behind a flag instead of using user defined callback
Feb 24, 2025
cc3f0a0
Cleaning up
Feb 24, 2025
dfcadc6
prevent data overflow on 32 bit platform for memory.grow
TianlongLiang Feb 8, 2025
2e4ebfb
cr suggestions
TianlongLiang Feb 12, 2025
f1ffbb5
cr suggestions
TianlongLiang Feb 12, 2025
e72338b
format
TianlongLiang Feb 12, 2025
851a26d
cr suggestions
TianlongLiang Feb 18, 2025
1252f72
feat: use C linkage in aot_comp_option.h for C++ embeding (#4106)
Jiax-cn Feb 24, 2025
8288190
build(deps): Bump actions/upload-artifact from 4.6.0 to 4.6.1
dependabot[bot] Feb 24, 2025
e158f66
build(deps): Bump github/codeql-action from 3.28.9 to 3.28.10
dependabot[bot] Feb 24, 2025
8b4ef08
Apply suggestions from code review
lum1n0us Feb 24, 2025
3f268e5
build(deps): Bump ossf/scorecard-action from 2.4.0 to 2.4.1
dependabot[bot] Feb 24, 2025
188eb1c
remove unnecessary includes
Feb 25, 2025
968b7d4
fix: add dispose of the debug information builder when destroying com…
Jiax-cn Feb 26, 2025
f2e3348
wasm_loader allocates more spaces for elements (#4099)
lum1n0us Feb 26, 2025
857e6b7
formatting
Feb 26, 2025
a5d8c0b
define if not defined
Feb 26, 2025
99cb6ec
formatting
Feb 26, 2025
fc3077b
address comments
Feb 27, 2025
bda012e
formatting
Feb 27, 2025
0b5084c
remove spare diff line
Feb 27, 2025
e693608
log warning instaed of assertion (#4119)
TianlongLiang Mar 1, 2025
beb34c3
Expose WAMR_BUILD_GC_HEAP_SIZE_DEFAULT as a CMake option
swankjesse Mar 3, 2025
bc00b3e
address comments
Mar 3, 2025
ffcc157
clang format
Mar 3, 2025
32d0f55
spare line
Mar 3, 2025
6166788
spare lines
Mar 3, 2025
de82d19
Address code review feedback
swankjesse Mar 4, 2025
73998e4
fix: fix load aarch64 aot failed (#4114)
Jiax-cn Mar 4, 2025
d609acf
Move the default heap size initialization
swankjesse Mar 4, 2025
56bb7e7
last fixes
Mar 5, 2025
811f35b
identation
Mar 5, 2025
e488345
fix bug for return value when skip_n is passed
Mar 5, 2025
9027b2d
Restore the doc heading.
swankjesse Mar 4, 2025
412631a
fix: correct typos and improve comments across multiple files by code…
no1wudi Mar 7, 2025
48a87dc
avoid Windows perform newline translation (#4128)
TianlongLiang Mar 7, 2025
d1cf356
build(deps): Bump github/codeql-action from 3.28.10 to 3.28.11
dependabot[bot] Mar 10, 2025
766f378
Merge pull request #4033 from g0djan/godjan/iterate_callstack
lum1n0us Mar 11, 2025
7cc2620
Merge pull request #4132 from bytecodealliance/dependabot/github_acti…
lum1n0us Mar 11, 2025
c6f9344
Merge pull request #4124 from swankjesse/WAMR_BUILD_GC_HEAP_SIZE_DEFAULT
lum1n0us Mar 12, 2025
dde6477
Fix iwasm build error when WAMR_BUILD_WASI_NN enabled
zhen9910 Mar 13, 2025
e27e538
Fix iwasm build error when WAMR_BUILD_WASI_NN enabled (#4138)
lum1n0us Mar 14, 2025
c30e65b
include bh_platform.h (#4135)
sjamesr Mar 17, 2025
efa8019
Merge dev/simd for fast-interp (#4131)
loganek Mar 20, 2025
1f14f4e
Fix build issues when compiling WAMRC as a cross-compiler (#4112)
peter-tatrai Mar 20, 2025
06ea960
fix(runtest.py): A workaround to bypass errors that occur when deleti…
lum1n0us Mar 20, 2025
913c222
build(deps): Bump esbuild, @vitejs/plugin-react and vite (#4149)
dependabot[bot] Mar 20, 2025
3e20194
Update NuttX and NuttX Apps references to releases/12.9 in workflow f…
no1wudi Mar 23, 2025
5d8fe5d
platform/nuttx: Flush icache/dcache properly (#4147)
no1wudi Mar 23, 2025
c257692
build(deps): Bump github/codeql-action from 3.28.11 to 3.28.12 (#4160)
dependabot[bot] Mar 25, 2025
8acaaa2
build(deps): Bump actions/upload-artifact from 4.6.1 to 4.6.2 (#4159)
dependabot[bot] Mar 25, 2025
4a17741
test: temporarily skip 'skip-stack-guard-page' test case until issue …
no1wudi Mar 25, 2025
1931f2e
nuttx: remove the up_x API for kernel build (#4154)
no1wudi Mar 27, 2025
4082e53
docs: Update build instructions suggestions for using Valgrind (#4164)
lum1n0us Mar 27, 2025
fb69699
build(deps): Bump github/codeql-action from 3.28.12 to 3.28.13 (#4170)
dependabot[bot] Apr 1, 2025
b8dde72
dwarf_extractor.cpp: use macro control to be compatible with lower ve…
TianlongLiang Apr 1, 2025
159b69d
Update cmake min to 3.14 (#4175)
lum1n0us Apr 1, 2025
6424122
fix format specifier warning on 32bit builds (#4177)
sjamesr Apr 2, 2025
4e50d21
Remove indirect-load for constants on Xtensa Target to improve perfor…
dongsheng28849455 Apr 2, 2025
79f26a9
cmake: Enhance target selection for ARM architectures with FPU (#4185)
no1wudi Apr 9, 2025
8f2fed4
build(deps): Bump github/codeql-action from 3.28.13 to 3.28.14 (#4184)
dependabot[bot] Apr 9, 2025
8245aef
aot: add new u64 intrinsics (#4168)
spaceface777 Apr 9, 2025
2a26324
Refactor Dockerfile and update .dockerignore for wasi-nn tests; adjus…
lum1n0us Apr 10, 2025
8fe98f6
Add import memory/table flag assert check for miniloader (#4179)
TianlongLiang Apr 10, 2025
793135b
Fix few integer overflowing (#4161)
lum1n0us Apr 10, 2025
9aaf359
prevent frame_offset underflow in wasm_loader (#4165)
lum1n0us Apr 10, 2025
751cdcf
improve variable naming and code clarity in SIMD operations (#4157)
lum1n0us Apr 10, 2025
cc19036
fix: Remove unused variables in SIMD_v128_const case (#4197)
no1wudi Apr 15, 2025
3bdec3c
build(deps): Bump github/codeql-action from 3.28.14 to 3.28.15 (#4198)
dependabot[bot] Apr 15, 2025
46ec863
fix false native stack overflow detections with HW_BOUND_CHECK (#4196)
yamt Apr 15, 2025
d085d1c
Keep fix the CMake compatibility issue (#4180)
lum1n0us Apr 15, 2025
fc78d67
Fix the error of AOT mode on the "i386-windows-msvc" platform (#4183)
w4454962 Apr 16, 2025
0ba6532
debug-engine: fix a few type mismatches (#4189)
yamt Apr 16, 2025
955fce5
Replace CMAKE_CURRENT_FUNCTION_LIST_DIR (#4200)
lum1n0us Apr 16, 2025
fc1527e
Raise CI runner to ubuntu 22.04 (#4191)
lum1n0us Apr 17, 2025
996758c
Remove the dlen to optimize it. (#4193)
lum1n0us Apr 17, 2025
ecb47d9
Add missing casts and improve error handling in performance map funct…
lum1n0us Apr 17, 2025
8f8c560
Raise wasi-sdk to 25 and wabt to 1.0.37 (#4187)
lum1n0us Apr 17, 2025
0702f78
Add missing V128 handling in WASM_OP_BR, reported in #4173
Apr 16, 2025
ff27687
fix potential memory leak (#4205)
TianlongLiang Apr 22, 2025
c883faf
Merge pull request #4203 from jammar1/jammar1/fix-br-v128
loganek Apr 22, 2025
6d61e72
Update unit test cases (#4214)
kylo5aby Apr 25, 2025
af2a204
fix print_help when libc wasi is enabled (#4218)
Septa2112 Apr 25, 2025
c2d7fa3
LLVM: don't verify instcombine fixpoint (#4219)
yamt Apr 27, 2025
6593b3f
LLVMCreateTargetMachineWithOpts: disable large data (#4220)
yamt Apr 27, 2025
84767f9
wamrc: add --disable-llvm-jump-tables option (#4224)
yamt Apr 28, 2025
791e60f
feat(fuzz): add a new fuzzing target about aot compiler (#4121)
lum1n0us Apr 28, 2025
1d39b9c
bypass vptr santizier (#4231)
lum1n0us Apr 29, 2025
a996689
use a selected llvm libs list to replace the full list (#4232)
lum1n0us Apr 29, 2025
9773390
set default value of `WAMR_BUILD_REF_TYPES` to 1 in standalone cases …
Septa2112 Apr 30, 2025
3232bdf
teach aot emitter/loader about .srodata and .srodata.cst* sections (#…
yamt May 5, 2025
382aa9e
run_clang_format_diff: mention homebrew for clang-format installation…
yamt May 5, 2025
5bdbba0
platform/nuttx: Fix dcache operation in os_dcache_flush (#4225)
no1wudi May 5, 2025
5910e5c
Use --target to pass a triple in wamrc (#4199)
lum1n0us May 5, 2025
4735956
fix return types of our 64-bit clz/ctz/popcount intrinsics (#4238)
yamt May 6, 2025
d053f55
build(deps): Bump github/codeql-action from 3.28.15 to 3.28.17 (#4243)
dependabot[bot] May 6, 2025
1996c18
samples/wasm-c-api: skip aot compilation unless necessary (#4239)
yamt May 6, 2025
bb36a43
riscv: avoid llvm.cttz.i32/i64 for xip (#4248)
yamt May 7, 2025
ea417d7
Add overflow check for preserved local offset in preserve_referenced_…
lum1n0us May 7, 2025
ac2fe55
aot_resolve_object_relocation_group: adapt to LLVM 16 (#4250)
yamt May 7, 2025
88b5f6a
samples/wasm-c-api: remove unused valgrind detection (#4249)
yamt May 7, 2025
0e8b57d
More detail to python setup, and fixed small typo (#4247)
woodsmc May 7, 2025
216404d
initialize WASI stdio handles to invalid for better error handling (#…
lum1n0us May 8, 2025
ca5a2fa
Modifying build flags to ensure libiwasm.so is built (#4255)
woodsmc May 8, 2025
f88718d
JIT: don't join worker threads twice (#4252)
yamt May 8, 2025
0a8994a
aot_resolve_object_relocation_group: adapt to LLVM 19 (#4254)
yamt May 8, 2025
6aa223d
Stop pretending to support extended-const proposal (#4258)
yamt May 9, 2025
1a72dcf
Improve readlinkat_dup() to handle symlink size correctly (#4229)
lum1n0us May 9, 2025
908838a
build-scripts/build_llvm.py: bump to llvm 18 (#4259)
yamt May 9, 2025
8f39610
fix: improve error handling of snprintf() in send_thread_stop_status(…
lum1n0us May 9, 2025
c48dd5c
Don't call os_thread_get_stack_boundary unless we actually use it (#4…
sjamesr May 9, 2025
510bb11
CI: make macos' build_samples_wasm_c_api similar to ubuntu (#4253)
yamt May 9, 2025
3cce6fd
avoid access null pointer (#4262)
kylo5aby May 12, 2025
7446b08
disable compiler to prevent get_current_target() crash (#4251)
kylo5aby May 12, 2025
477d66d
product-mini/platforms/windows: set C++17 explicitly (#4269)
yamt May 13, 2025
26aa483
fix buf checking in load_table_section (#4276)
yviansu May 13, 2025
f0a8286
Refactor fast-interpreter SIMD compilation flags (#4261)
lum1n0us May 14, 2025
065cc72
Bypass wamr_ide-related components from the release process. (#4268)
lum1n0us May 14, 2025
5c7f64b
Set CMAKE_OSX_SYSROOT when building lldb (#4274)
lum1n0us May 14, 2025
70b35f9
Check for WASM_ENABLE_SIMDE in a couple more places (#4266)
sjamesr May 14, 2025
8ad4789
Add error handling for sgx ci (#4222)
lum1n0us May 14, 2025
129dc3a
Add select 128 (#4236)
Zzzabiyaka May 14, 2025
28702ed
Merge commit from fork
lum1n0us May 14, 2025
c7b2db1
Update version to 2.3.0 (#4171)
jammar1 May 14, 2025
e48367c
Fix SIMD load lane to avoid incompatible pointer types (#4278)
lum1n0us May 19, 2025
14d09bf
Fixed unit tests on X86_32 (#4279)
Septa2112 May 19, 2025
f4f33b6
feat(yml): Add ESP32-P4 and ESP32-C5 support (#4270)
cwespressif May 19, 2025
76caabe
build(deps): Bump github/codeql-action from 3.28.17 to 3.28.18 (#4285)
dependabot[bot] May 22, 2025
b7474b3
Improve Embedding WAMR guideline (#4263) (#4284)
kr-t May 22, 2025
6659a31
add a sample to use cmake package (#4291)
yamt May 23, 2025
c018b8a
feat: Add instruction metering for interpreter (#4122)
AlixANNERAUD May 26, 2025
21bcf5c
Fix Compiler Error C2491 (#4286)
lum1n0us May 28, 2025
782c69f
Revert the location to install public headers (#4295)
yamt May 28, 2025
7f9e492
Enhance type checking for function types in loader and improve error …
lum1n0us May 28, 2025
3ab9f84
Dockerfile.vx-delegate build error fix (#4273)
HongxiaWangSSSS May 28, 2025
3580d1a
Enable runtime API exposure for MSVC builds (#4287)
lum1n0us May 28, 2025
207da7b
updating WASI stdio handle initialization and build options for UVWAS…
lum1n0us May 29, 2025
670aa83
Bump version to 2.3.1 and update release notes (#4303)
lum1n0us Jun 2, 2025
2a30386
Fix a linking error caused by commit #3580d1 (#4311)
lum1n0us Jun 2, 2025
aa1ff77
add load_by_name in wasi-nn (#4298)
HongxiaWangSSSS Jun 2, 2025
62bb6e8
build(deps): Bump ossf/scorecard-action from 2.4.1 to 2.4.2 (#4315)
dependabot[bot] Jun 3, 2025
938503a
Bump uvwasi to latest commit #392e1f1 (#4312)
lum1n0us Jun 3, 2025
1c12a32
wasi_nn_openvino.c: fix a few printf formats (#4310)
yamt Jun 3, 2025
16c4675
wasi-nn: remove "backends" argument from detect_and_load_backend() (#…
yamt Jun 3, 2025
ae6e490
fix wasi-nn abi definitions (#4307)
yamt Jun 3, 2025
61cb972
wasi-nn: fix shared library filenames for macOS (#4306)
yamt Jun 3, 2025
6a00874
wasi_nn_openvino.c: make this buildable (#4305)
yamt Jun 3, 2025
93ef19b
handle nullable heap reference types in import section (#4302)
kylo5aby Jun 3, 2025
85efe08
wasi-nn: protect the backend lookup table with a lock (#4319)
yamt Jun 5, 2025
b20ebc2
wasi_nn.h: add import_name attribute (#4328)
yamt Jun 5, 2025
79cb436
wasi-nn: remove unused wasi_nn_dump_tensor_dimension prototype (#4325)
yamt Jun 5, 2025
602e86a
Add wamrc compilation into Windows CI workflow (#4327)
lum1n0us Jun 5, 2025
48a9773
Update binary compression steps to follow symlinks for actual files (…
lum1n0us Jun 6, 2025
97e9502
Update Dockerfile for Zephyr SDK and Zephyr-project versioning (#4335)
lum1n0us Jun 6, 2025
350af77
Collective fix: fix some typos (#4337)
TianlongLiang Jun 6, 2025
769d16e
wasi-nn: move some host-only things out of wasi_nn_types.h (#4334)
yamt Jun 6, 2025
933f812
wasi-nn: fix the size of tensor->type (#4333)
yamt Jun 6, 2025
99c75b5
remove temporary wasi-libc build steps from CI workflows (#4343)
lum1n0us Jun 9, 2025
4d6b8dc
wasi_nn.h: make this compatible with wasi_ephemeral_nn (#4330)
yamt Jun 9, 2025
ea5757f
wasi-nn: do not assign wasi_nn_ctx->backend multiple times (#4329)
yamt Jun 9, 2025
07c23cb
build(deps): Bump github/codeql-action from 3.28.18 to 3.28.19 (#4346)
dependabot[bot] Jun 10, 2025
7f968f5
wasi_socket_ext.c: avoid tls to make this library-friendly (#4338)
yamt Jun 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 7 additions & 11 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# for now, it is used to speed up wasi-nn tests only.
# you shall adapt below rules to incoming requirements

build
*/build
*/*/build
*/*/*/build
*/*/*/*/build
*/*/*/*/*/build
*/*/*/*/*/*/build
**/build
**/tmp.*
.*
**/*.gguf

core/deps
!core/deps/tensorflow-src
samples
tests
/core/deps/
!/core/deps/tensorflow-src
/samples
/tests
47 changes: 47 additions & 0 deletions .github/actions/install-linux-sgx/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# Always follow https://download.01.org/intel-sgx/latest/linux-latest/docs/

name: "Install Intel SGX SDK"
description: "Installs the Intel SGX SDK and necessary libraries for Ubuntu."
author: "Intel Corporation"
inputs:
os:
description: "Operating system to install on (ubuntu-22.04)"
required: true

runs:
using: "composite"
steps:
- name: Check Runner OS
if: ${{ inputs.os != 'ubuntu-22.04' }}
shell: bash
run: |
echo "::error title=⛔ error hint::Only support ubuntu-22.04 for now"
exit 1

- name: Create installation directory
shell: bash
run: sudo mkdir -p /opt/intel

- name: Download and install SGX SDK on ubuntu-22.04
if: ${{ inputs.os == 'ubuntu-22.04' }}
shell: bash
run: |
sudo wget -O sgx_linux_x64_sdk.bin https://download.01.org/intel-sgx/sgx-linux/2.25/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.25.100.3.bin
sudo chmod +x sgx_linux_x64_sdk.bin
echo 'yes' | sudo ./sgx_linux_x64_sdk.bin
working-directory: /opt/intel

- name: Add SGX repository and install libraries
shell: bash
run: |
echo "deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/intel-sgx.list
wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
sudo apt update
sudo apt install -y libsgx-launch libsgx-urts

- name: Source SGX SDK environment
shell: bash
run: source /opt/intel/sgxsdk/environment
80 changes: 80 additions & 0 deletions .github/actions/install-wasi-sdk-wabt/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# Get URLs from:
# - https://github.com/WebAssembly/wasi-sdk/releases
# - https://github.com/WebAssembly/wabt/releases

# Install WASI-SDK and WABT at /opt
# /opt is the assumed location widely used in the project
name: Install WASI-SDK and WABT

description: A composite action to download and install wasi-sdk and wabt on Ubuntu, macOS.

inputs:
os:
description: "Operating system to install on (ubuntu, macos)"
required: true

runs:
using: "composite"
steps:
- name: Check Runner OS
if: ${{ !startsWith(inputs.os, 'ubuntu') && !startsWith(inputs.os, 'windows') && !startsWith(inputs.os, 'macos') }}
shell: bash
run: |
echo "::error title=⛔ error hint::Support Ubuntu, Windows, and macOS Only"
exit 1

- name: Set up wasi-sdk and wabt on Ubuntu
if: ${{ startsWith(inputs.os, 'ubuntu') }}
shell: bash
run: |
sudo wget -O wasi-sdk.tar.gz --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz
sudo tar -xf wasi-sdk.tar.gz
sudo ln -sf wasi-sdk-25.0-x86_64-linux/ wasi-sdk
sudo wget -O wabt.tar.gz --progress=dot:giga https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-ubuntu-20.04.tar.gz
sudo tar -xf wabt.tar.gz
sudo ln -sf wabt-1.0.37 wabt
/opt/wasi-sdk/bin/clang --version
/opt/wabt/bin/wasm-interp --version
echo "::notice::wasi-sdk-25 and wabt-1.0.37 installed on ubuntu"
working-directory: /opt

- name: Set up wasi-sdk and wabt on macOS-13 (intel)
if: ${{ inputs.os == 'macos-13' }}
shell: bash
run: |
sudo wget -O wasi-sdk.tar.gz --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-macos.tar.gz
sudo tar -xf wasi-sdk.tar.gz
sudo ln -sf wasi-sdk-25.0-x86_64-macos wasi-sdk
sudo wget -O wabt.tar.gz --progress=dot:giga https://github.com/WebAssembly/wabt/releases/download/1.0.36/wabt-1.0.36-macos-12.tar.gz
sudo tar -xf wabt.tar.gz
sudo ln -sf wabt-1.0.36 wabt
/opt/wasi-sdk/bin/clang --version
/opt/wabt/bin/wasm-interp --version
echo "::notice::wasi-sdk-25 and wabt-1.0.36 installed on macos-13"
working-directory: /opt

- name: Set up wasi-sdk and wabt on macOS-14 (arm64)
if: ${{ inputs.os == 'macos-14' }}
shell: bash
run: |
sudo wget -O wasi-sdk.tar.gz --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-arm64-macos.tar.gz
sudo tar -xf wasi-sdk.tar.gz
sudo ln -sf wasi-sdk-25.0-arm64-macos wasi-sdk
sudo wget -O wabt.tar.gz --progress=dot:giga https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-macos-14.tar.gz
sudo tar -xf wabt.tar.gz
sudo ln -sf wabt-1.0.37 wabt
/opt/wasi-sdk/bin/clang --version
/opt/wabt/bin/wasm-interp --version
echo "::notice::wasi-sdk-25 and wabt-1.0.37 installed on macos-14"
working-directory: /opt

#TODO: Add support for Windows
- name: Set up wasi-sdk and wabt on Windows
if: ${{ startsWith(inputs.os, 'windows') }}
shell: powershell
run: |
echo "::notice::Support for Windows is not implemented yet"
exit 1
3 changes: 2 additions & 1 deletion .github/workflows/build_iwasm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ jobs:
- name: compress the binary on non-Windows
if: inputs.runner != 'windows-latest'
run: |
tar czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
# Follow the symlink to the actual binary file
tar --dereference -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
zip iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip iwasm
working-directory: ${{ inputs.cwd }}/build

Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/build_llvm_libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
shell: bash
run: |
echo "last_commit=$(GH_TOKEN=${{ secrets.GITHUB_TOKEN }} /usr/bin/env python3 ./build_llvm.py ${{ inputs.extra_build_llvm_options }} --llvm-ver)" >> $GITHUB_OUTPUT
working-directory: build-scripts

# Bump the prefix number to evict all previous caches and
# enforce a clean build, in the unlikely case that some
Expand All @@ -88,14 +89,6 @@ jobs:
./core/deps/llvm/build/share
key: ${{ steps.create_lib_cache_key.outputs.key}}

- uses: actions/cache@v4
with:
path: ~/.ccache
key: 0-ccache-${{ inputs.os }}-${{ steps.get_last_commit.outputs.last_commit }}
restore-keys: |
0-ccache-${{ inputs.os }}
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'ubuntu-20.04'

- uses: actions/cache@v4
with:
path: ~/.cache/ccache
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build_wamr_lldb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,20 @@ jobs:
python3 ci/validate_lldb.py --port 1239 --lldb core/deps/wamr-lldb/bin/lldb --wamr wamr-debug/iwasm --verbose
working-directory: .

# Define CMAKE_OSX_SYSROOT to avoid the error:
# no such file or directory: 'llvm-project/build/tools/lldb/tools/debugserver/source/mach_excServer.c'
# no such file or directory: 'llvm-project/build/tools/lldb/tools/debugserver/source/mach_excUser.c'
#
# This workaround should be removed when the issue is fixed in llvm-project:
# - https://github.com/llvm/llvm-project/pull/138020/
- name: build lldb macos
if: steps.lldb_build_cache.outputs.cache-hit != 'true' && contains(inputs.runner, 'macos')
run: |
echo "start to build lldb..."
mkdir -p wamr-lldb
cmake -S ./llvm -B build \
-G Ninja \
-DCMAKE_OSX_SYSROOT=$(xcrun --show-sdk-path) \
-DCMAKE_INSTALL_PREFIX=../wamr-lldb \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_wamrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
- name: compress the binary on non-Windows
if: inputs.runner != 'windows-latest' && inputs.release
run: |
tar czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc
# Follow the symlink to the actual binary file
tar --dereference -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc
zip wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip wamrc
working-directory: wamr-compiler/build

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/check_version_h.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: confirm version.h stay in sync

on:
workflow_call:

permissions:
contents: read

jobs:
confirm_version:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: cmake execute to generate version.h
run: cmake -B build_version -S .

- name: confirm version.h
run: |
if [ -z "$(git status --porcelain | grep version.h)" ]; then
echo "version.h is in sync"
else
echo "version.h is not in sync"
exit 1
fi
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3.28.8
uses: github/codeql-action/init@v3.28.19

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
with:
languages: ${{ matrix.language }}

Expand All @@ -70,7 +70,7 @@
- run: |
./.github/scripts/codeql_buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3.28.8
uses: github/codeql-action/analyze@v3.28.19

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
with:
category: "/language:${{matrix.language}}"
upload: false
Expand Down Expand Up @@ -99,14 +99,14 @@
output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif

- name: Upload CodeQL results to code scanning
uses: github/codeql-action/upload-sarif@v3.28.8
uses: github/codeql-action/upload-sarif@v3.28.19

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
with:
sarif_file: ${{ steps.step1.outputs.sarif-output }}
category: "/language:${{matrix.language}}"

- name: Upload CodeQL results as an artifact
if: success() || failure()
uses: actions/upload-artifact@v4.6.0
uses: actions/upload-artifact@v4.6.2
with:
name: codeql-results
path: ${{ steps.step1.outputs.sarif-output }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding_guidelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
compliance_job:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down
Loading
Loading