Skip to content

Dev/zephyr file socket #4377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 185 commits into
base: dev/zephyr_file_socket
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
d612511
Added os_is_* methods for stdin/stdout/stderr.
srberard Dec 3, 2024
da3df3d
Fixed clang formating issue.
srberard Dec 5, 2024
9563909
set alignment 4 when loading multi return value (#3955)
TianlongLiang Dec 12, 2024
296c3cc
wasm_export.h: Use "default" visibility for gcc and clang (#3957)
midokura-xavi92 Dec 19, 2024
09c2abd
build(deps): Bump github/codeql-action from 3.27.6 to 3.27.9 (#3960)
dependabot[bot] Dec 19, 2024
932eb5d
Only access Zephyr thread stats info when it's available (#3962)
TianlongLiang Dec 19, 2024
9916813
top-level cmakefile: fix macOS build (#3968)
yamt Dec 19, 2024
8d51a3c
use a random secret key (#3971)
lum1n0us Dec 19, 2024
f8f37c8
[fuzzing] Enable instantiation (#3958)
lum1n0us Dec 19, 2024
9598611
CMakeLists.txt: Do not require C++ (#3956)
midokura-xavi92 Dec 20, 2024
4cda74a
add reference type support by default for darwin to support WASI-SDK-…
woodsmc Dec 22, 2024
040e776
top-level cmake: link llvm libraries to our shared library (#3973)
yamt Dec 23, 2024
8ac0649
Set thread information earlier in exec_env creation (#3967)
sjamesr Dec 23, 2024
70bec14
Add Tianlong into code owners (#3970)
lum1n0us Dec 24, 2024
bf2f366
build(deps): Bump github/codeql-action from 3.27.9 to 3.28.0 (#3982)
dependabot[bot] Dec 25, 2024
04f1071
build(deps): Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#3981)
dependabot[bot] Dec 25, 2024
9b80766
Break aot_create_comp_data into small functions
no1wudi Dec 25, 2024
38cf274
Optimize memory initialization handling in AOT loader (#3983)
no1wudi Dec 26, 2024
24ecee8
Merge pull request #3987 from no1wudi/fix
no1wudi Dec 28, 2024
7f3e0df
Handle a new scenario where an item is both exported and imported. (#…
lum1n0us Dec 29, 2024
31ff576
Error message improvement (#4000)
loganek Jan 3, 2025
099056b
Ensure __heap_base and __data_end global indices are validated agains…
lum1n0us Jan 3, 2025
1958808
Fix table index calculations in wasm_loader and wasm_mini_loader (#4004)
lum1n0us Jan 5, 2025
1807eec
Add an example of how to embed WAMR in Zephyr user mode (#3998)
TianlongLiang Jan 5, 2025
9989b1c
[fuzzing] Use software bound-check during fuzzing (#4003)
lum1n0us Jan 6, 2025
a653746
Check whether related table has funcref elem in opcode call_indirect …
TianlongLiang Jan 6, 2025
02683d2
Improve stack consistency by ensuring sufficient space for dummy offs…
lum1n0us Jan 9, 2025
902f7d2
Add documentation regarding security issues and the status of Wasm pr…
lum1n0us Jan 9, 2025
49717c4
Fixed comment text
srberard Jan 9, 2025
53da420
Enable shrunk memory by default and add related configurations (#4008)
lum1n0us Jan 12, 2025
0d20521
build(deps): Bump actions/upload-artifact from 4.5.0 to 4.6.0 (#4021)
dependabot[bot] Jan 14, 2025
946430f
build(deps): Bump github/codeql-action from 3.28.0 to 3.28.1 (#4020)
dependabot[bot] Jan 14, 2025
9c3807e
Refine read leb int wasm loader of fast interpreter (#4017)
wenyongh Jan 14, 2025
435a8a8
Merge branch 'bytecodealliance:dev/zephyr_file_socket' into dev/zephy…
srberard Jan 14, 2025
1ac62e1
.github: Add shared lib builds (#3975)
midokura-xavi92 Jan 15, 2025
ba75b8f
fixes for compiling on windows (#4026)
malytomas Jan 17, 2025
68e4534
Iterate callstack API
Jan 17, 2025
831e4bb
Refine getting const offsets in wasm loader of fast-interp (#4012)
wenyongh Jan 20, 2025
e3ddbd5
Synchronize the GC spec tests to the commit from December 9. 2024. (#…
lum1n0us Jan 20, 2025
b6dea22
Fix wasm loader check data segment count (#4039)
TianlongLiang Jan 21, 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
5dcffaa
Update Rust target from 'wasm32-wasi' to 'wasm32-wasip1' in CI (#4050)
TianlongLiang Feb 1, 2025
6f0e0e5
build(deps): Bump github/codeql-action from 3.28.1 to 3.28.5
dependabot[bot] Jan 27, 2025
7f1e612
build(deps): Bump github/codeql-action from 3.28.5 to 3.28.8
dependabot[bot] Feb 3, 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
squarejesse 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
squarejesse Mar 4, 2025
73998e4
fix: fix load aarch64 aot failed (#4114)
Jiax-cn Mar 4, 2025
d609acf
Move the default heap size initialization
squarejesse 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.
squarejesse 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
cee5533
Merge branch 'main' into dev/zephyr_file_socket
srberard May 5, 2025
96a2cfb
Zephyr platform fixes for WASI sockets
srberard May 16, 2025
369fe49
Updated `os_writev` to use `fwrite` for STDOUT/STDERR
srberard May 22, 2025
72b98dd
Temporarily reverted change to `writev` to work around an issue.
srberard May 26, 2025
00b753c
Fixes: fstat, fstatat, and unlink
dkouba-atym Jun 6, 2025
4fe244c
Updated comments
srberard Jun 17, 2025
758c26c
Merge branch 'dev/zephyr_file_socket' into dev/zephyr_file_socket
srberard Jun 17, 2025
6c8584b
Add initial support for directories in os_openat
dkouba-atym Jun 18, 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
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
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 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3.27.6
uses: github/codeql-action/init@v3.28.15
with:
languages: ${{ matrix.language }}

Expand All @@ -70,7 +70,7 @@ jobs:
- run: |
./.github/scripts/codeql_buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3.27.6
uses: github/codeql-action/analyze@v3.28.15
with:
category: "/language:${{matrix.language}}"
upload: false
Expand Down Expand Up @@ -99,14 +99,14 @@ jobs:
output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif

- name: Upload CodeQL results to code scanning
uses: github/codeql-action/upload-sarif@v3.27.6
uses: github/codeql-action/upload-sarif@v3.28.15
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.4.3
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