Skip to content
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

Merge branch main into dev/checkpoint_and_restore #3874

Merged
merged 81 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
84411c6
Merge pull request #3613 from bytecodealliance/main
wenyongh Jul 10, 2024
57f2661
Merge pull request #3631 from bytecodealliance/main
wenyongh Jul 16, 2024
55cb9c5
Enable merged os_mmap for aot data sections (#3681)
bianchui Aug 14, 2024
5f517e4
aot loader: Refine os_mmap related code (#3711)
wenyongh Aug 16, 2024
9423fee
Merge pull request #3739 from bytecodealliance/main
wenyongh Aug 21, 2024
5164aca
Merge pull request #3737 from bytecodealliance/main
wenyongh Aug 21, 2024
b00904b
Add a comment on AOT_SECTION_TYPE_SIGNATURE (#3746)
yamt Aug 22, 2024
e8c2952
Fix arm64 issues on mac (#3688)
Andersbakken Aug 23, 2024
cb3a69f
CI: Freeze version of bloaty for NuttX compilation (#3756)
no1wudi Aug 28, 2024
a8d539d
Merge branch 'main' into dev/merge_aot_data_text
wenyongh Aug 29, 2024
20949bd
Merge pull request #3757 from bytecodealliance/dev/merge_aot_data_text
wenyongh Aug 29, 2024
d1141f6
aot compiler: Allow to control stack boundary check when boundary che…
TianlongLiang Aug 29, 2024
eab409a
aot loader: Call os_mmap with MMAP_MAP_32BIT only when target is x86-…
Andersbakken Aug 29, 2024
0b62cc8
Update ref to the multi-memory tests (#3764)
loganek Sep 3, 2024
5cc94e5
Improve posix mmap retry logic (#3714)
sjamesr Sep 3, 2024
fed0fe9
compilation_on_nuttx.yml: Update checkout action to suppress warnings…
no1wudi Sep 4, 2024
65521b1
Remove unnecessary code duplication in aot runtime (#3767)
loganek Sep 5, 2024
b4380fb
refactoring: Re-use commit IP functionality between exception handlin…
loganek Sep 5, 2024
6f97822
Add wamrc parameter to configure stack frame features (#3763)
loganek Sep 5, 2024
b38a2e8
Fix building iwasm_shared and iwasm_static libs on win32 (#3762)
mattyg Sep 6, 2024
cb71ca5
CI: Disable parallel test in spectest for NuttX (#3780)
no1wudi Sep 9, 2024
0599351
wasi-nn: Add a new target for llama.cpp as a wasi-nn backend (#3709)
lum1n0us Sep 10, 2024
cbc2078
AOT call stack optimizations (#3773)
loganek Sep 10, 2024
f453d9d
Appease GCC strict prototypes warning (#3775)
yamt Sep 10, 2024
c276aca
Fix compile error when multi-module and tags are enabled (#3781)
bnason-nf Sep 10, 2024
cd47438
spec_test_on_nuttx.yml: Disable riscv32_ilp32f for now (#3777)
yamt Sep 10, 2024
1a61cb7
Appease GCC -Wformat (#3783)
yamt Sep 10, 2024
b882017
Fix compiler warnings (#3784)
loganek Sep 11, 2024
9c2083a
Implement option for skipping function index in the callstack (#3785)
loganek Sep 11, 2024
9aadbfe
Ignore temporary file from aider (#3787)
no1wudi Sep 13, 2024
27b6917
Merge pull request #3792 from bytecodealliance/main
wenyongh Sep 13, 2024
926f662
Add memory instance support apis (#3786)
bnason-nf Sep 14, 2024
92852f3
Implement a first version of shared heap feature (#3789)
WenLY1 Sep 14, 2024
d64a3ab
Fix aot multi export memory support (#3791)
bnason-nf Sep 14, 2024
79e695e
Fix a compile warning in aot_emit_function.c (#3793)
Andersbakken Sep 18, 2024
e9cc873
Restore cmake hidden compile symbol visibility (#3796)
bnason-nf Sep 18, 2024
51a7109
Support dynamic aot debug (#3788)
LevelCA Sep 18, 2024
5e20cf3
Refactor shared heap feature for interpreter mode (#3794)
wenyongh Sep 18, 2024
2133099
Add no_resolve to LoadArgs and wasm_runtime_resolve_symbols (#3790)
Andersbakken Sep 20, 2024
4dacef2
shared heap: Fix some issues and add basic unit test case (#3801)
WenLY1 Sep 20, 2024
1fd422a
Merge branch main into dev/shared_heap
wenyongh Sep 20, 2024
c4aa1de
Add shared heap sample (#3806)
wenyongh Sep 20, 2024
e87f7a9
Fix Windows compile error when uvwasi is enabled (#3810)
wenyongh Sep 25, 2024
86926aa
Fix unused param warning when GC is enabled (#3814)
palchikov Sep 25, 2024
5ce6f90
Add scoreboard CI for supply-chain security (#3819)
TianlongLiang Sep 27, 2024
438b81b
Fix missing symbols when using aot mode on riscv platforms (#3812)
Kvencc Sep 28, 2024
9ba36e2
Implement shared heap for AOT (#3815)
wenyongh Sep 29, 2024
0e05b0a
Add CODEOWNERS (#3822)
lum1n0us Sep 29, 2024
bd8c7a3
build(deps): bump github/codeql-action from 2.2.4 to 3.26.9
dependabot[bot] Sep 30, 2024
2baac8d
build(deps): bump actions/upload-artifact from 3.1.0 to 4.4.0
dependabot[bot] Sep 30, 2024
2e60f37
build(deps): bump ossf/scorecard-action from 2.3.1 to 2.4.0
dependabot[bot] Sep 30, 2024
e07ac1f
Merge pull request #3826 from bytecodealliance/dependabot/github_acti…
loganek Oct 5, 2024
5f3d36b
Merge pull request #3827 from bytecodealliance/dependabot/github_acti…
loganek Oct 5, 2024
e0027f3
Merge pull request #3828 from bytecodealliance/dependabot/github_acti…
loganek Oct 5, 2024
72872cb
Fix mac build of libc_emcc_wrapper.c (#3836)
bnason-nf Oct 5, 2024
0c4b2da
aot_comp_option.h: Add missing stdint.h header (#3834)
sjamesr Oct 7, 2024
f9153fb
build(deps): bump github/codeql-action from 3.26.9 to 3.26.11 (#3843)
dependabot[bot] Oct 8, 2024
6b4d8aa
Emit load_addr and load_size if WAMR_ENABLE_COMPILER is set (#3835)
sjamesr Oct 8, 2024
30539bf
Fix compilation error found in tflite test (#3820)
lum1n0us Oct 8, 2024
deacb7a
Fix exec_env_tls assertion in module instantiation (#3844)
wenyongh Oct 8, 2024
19160f0
Fix issues of destroy_shared_heaps (#3847)
WenLY1 Oct 10, 2024
2b5e2d9
libc-emcc: Use alternate method to check getrandom support (#3848)
bnason-nf Oct 10, 2024
36d4380
Support table64 extension in classic-interp and AOT running modes (#3…
TianlongLiang Oct 11, 2024
b16b604
Enable libc-wasi for windows msvc build (#3852)
wenyongh Oct 14, 2024
e2680e5
Remove unused folder samples/gui and samples/littlevgl (#3853)
wenyongh Oct 14, 2024
7d4b530
build(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3 (#3855)
dependabot[bot] Oct 14, 2024
0152e2c
build(deps): bump github/codeql-action from 3.26.11 to 3.26.12 (#3856)
dependabot[bot] Oct 14, 2024
b038f27
Merge pull request #3823 from bytecodealliance/dev/shared_heap
wenyongh Oct 15, 2024
327374c
Fix some compile warnings and typos (#3854)
wenyongh Oct 15, 2024
1af4740
Add Windows wamrc and iwasm build in release CI (#3857)
TianlongLiang Oct 17, 2024
7e625a0
Fix syntax error in codeql_buildscript.sh (#3864)
TianlongLiang Oct 17, 2024
74d2427
Allow to set native stack boundary to exec_env (#3862)
wenyongh Oct 18, 2024
48eaa22
Refine wasm/aot function instance lookup (#3865)
wenyongh Oct 18, 2024
bb3f8d9
release CI: Add another iwasm binary that supports Garbage Collection…
TianlongLiang Oct 21, 2024
87588ca
Fix lookup function issue reported in nightly run (#3868)
wenyongh Oct 21, 2024
3ad9530
Fix quadratic runtime for duplicate export name detection (#3861)
sjamesr Oct 21, 2024
b34b2c8
Add token permissions for CIs to fix issues reported by scorecard (#3…
TianlongLiang Oct 22, 2024
fe13f6d
build(deps): bump github/codeql-action from 3.26.12 to 3.26.13 (#3869)
dependabot[bot] Oct 22, 2024
217ba3b
Update release notes and update version to 2.2.0 (#3863)
Zzzabiyaka Oct 22, 2024
7d56289
Exclude fuzz test python and npm packages in scoreboard scan (#3871)
TianlongLiang Oct 23, 2024
6426fc4
Fix out of bounds issues after memory.grow on non-aot non-threads bui…
Zzzabiyaka Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/scripts/codeql_buildscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ if [[ $? != 0 ]]; then
exit 1;
fi

# build iwasm with multi-memory enabled
cd ${WAMR_DIR}/product-mini/platforms/linux
rm -rf build && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_MULTI_MEMORY=1
make -j
if [[ $? != 0 ]]; then
echo "Failed to build iwasm with multi-memory enabled!"
exit 1;
fi

# build iwasm with hardware boundary check disabled
cd ${WAMR_DIR}/product-mini/platforms/linux
rm -rf build && mkdir build && cd build
Expand Down Expand Up @@ -280,3 +290,23 @@ if [[ $? != 0 ]]; then
echo "Failed to build iwasm with linux perf support enabled!"
exit 1;
fi

# build iwasm with shared heap enabled
cd ${WAMR_DIR}/product-mini/platforms/linux
rm -rf build && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_SHARED_HEAP=1
make -j
if [[ $? != 0 ]]; then
echo "Failed to build iwasm with shared heap enabled!"
exit 1;
fi

# build iwasm with dynamic aot debug enabled
cd ${WAMR_DIR}/product-mini/platforms/linux
rm -rf build && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_DYNAMIC_AOT_DEBUG=1
make -j
if [[ $? != 0 ]]; then
echo "Failed to build iwasm dynamic aot debug enabled!"
exit 1;
fi
5 changes: 5 additions & 0 deletions .github/workflows/build_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ on:
type: string
required: true

permissions:
contents: read

jobs:
build-and-push-images:
runs-on: ubuntu-22.04
permissions:
contents: write # for uploading release artifacts

steps:
- name: Checkout repository
Expand Down
120 changes: 87 additions & 33 deletions .github/workflows/build_iwasm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,78 @@ on:
type: string
required: false

env:
DEFAULT_BUILD_OPTIONS:
"-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_JIT=1 \
-DWAMR_BUILD_CUSTOM_NAME_SECTION=0 \
-DWAMR_BUILD_DEBUG_INTERP=0 \
-DWAMR_BUILD_DEBUG_AOT=0 \
-DWAMR_BUILD_DUMP_CALL_STACK=0 \
-DWAMR_BUILD_LIBC_UVWASI=0 \
-DWAMR_BUILD_LIBC_EMCC=0 \
-DWAMR_BUILD_LIB_RATS=0 \
-DWAMR_BUILD_LOAD_CUSTOM_SECTION=0 \
-DWAMR_BUILD_MEMORY_PROFILING=0 \
-DWAMR_BUILD_MINI_LOADER=0 \
-DWAMR_BUILD_MULTI_MODULE=0 \
-DWAMR_BUILD_PERF_PROFILING=0 \
-DWAMR_BUILD_SPEC_TEST=0 \
-DWAMR_BUILD_BULK_MEMORY=1 \
-DWAMR_BUILD_LIB_PTHREAD=1 \
-DWAMR_BUILD_LIB_PTHREAD_SEMAPHORE=1 \
-DWAMR_BUILD_LIB_WASI_THREADS=1 \
-DWAMR_BUILD_LIBC_BUILTIN=1 \
-DWAMR_BUILD_LIBC_WASI=1 \
-DWAMR_BUILD_REF_TYPES=1 \
-DWAMR_BUILD_SIMD=1 \
-DWAMR_BUILD_SHARED_MEMORY=1 \
-DWAMR_BUILD_TAIL_CALL=1 \
-DWAMR_BUILD_THREAD_MGR=1"
GC_EH_BUILD_OPTIONS:
"-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_FAST_JIT=0 -DWAMR_BUILD_JIT=0 \
-DWAMR_BUILD_CUSTOM_NAME_SECTION=0 \
-DWAMR_BUILD_DEBUG_INTERP=0 \
-DWAMR_BUILD_DEBUG_AOT=0 \
-DWAMR_BUILD_DUMP_CALL_STACK=0 \
-DWAMR_BUILD_LIBC_UVWASI=0 \
-DWAMR_BUILD_LIBC_EMCC=0 \
-DWAMR_BUILD_LIB_RATS=0 \
-DWAMR_BUILD_LOAD_CUSTOM_SECTION=0 \
-DWAMR_BUILD_MEMORY_PROFILING=0 \
-DWAMR_BUILD_MINI_LOADER=0 \
-DWAMR_BUILD_MULTI_MODULE=0 \
-DWAMR_BUILD_PERF_PROFILING=0 \
-DWAMR_BUILD_SPEC_TEST=0 \
-DWAMR_BUILD_BULK_MEMORY=1 \
-DWAMR_BUILD_LIB_PTHREAD=1 \
-DWAMR_BUILD_LIB_PTHREAD_SEMAPHORE=1 \
-DWAMR_BUILD_LIB_WASI_THREADS=1 \
-DWAMR_BUILD_LIBC_BUILTIN=1 \
-DWAMR_BUILD_LIBC_WASI=1 \
-DWAMR_BUILD_REF_TYPES=1 \
-DWAMR_BUILD_SIMD=1 \
-DWAMR_BUILD_SHARED_MEMORY=1 \
-DWAMR_BUILD_TAIL_CALL=1 \
-DWAMR_BUILD_THREAD_MGR=1 \
-DWAMR_BUILD_EXCE_HANDLING=1 \
-DWAMR_BUILD_GC=1"

permissions:
contents: read

jobs:
build:
runs-on: ${{ inputs.runner }}
strategy:
matrix:
include:
- build_options: $DEFAULT_BUILD_OPTIONS
suffix: ''
- build_options: $GC_EH_BUILD_OPTIONS
suffix: '-gc-eh'
permissions:
contents: write # for uploading release artifacts

steps:
- uses: actions/checkout@v4

Expand All @@ -51,40 +120,25 @@ jobs:
fail-on-cache-miss: true

- name: generate iwasm binary release
shell: bash
run: |
cmake -S . -B build \
-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_JIT=1 \
-DWAMR_BUILD_CUSTOM_NAME_SECTION=0 \
-DWAMR_BUILD_DEBUG_INTERP=0 \
-DWAMR_BUILD_DEBUG_AOT=0 \
-DWAMR_BUILD_DUMP_CALL_STACK=0 \
-DWAMR_BUILD_LIBC_UVWASI=0 \
-DWAMR_BUILD_LIBC_EMCC=0 \
-DWAMR_BUILD_LIB_RATS=0 \
-DWAMR_BUILD_LOAD_CUSTOM_SECTION=0 \
-DWAMR_BUILD_MEMORY_PROFILING=0 \
-DWAMR_BUILD_MINI_LOADER=0 \
-DWAMR_BUILD_MULTI_MODULE=0 \
-DWAMR_BUILD_PERF_PROFILING=0 \
-DWAMR_BUILD_SPEC_TEST=0 \
-DWAMR_BUILD_BULK_MEMORY=1 \
-DWAMR_BUILD_LIB_PTHREAD=1 \
-DWAMR_BUILD_LIB_PTHREAD_SEMAPHORE=1 \
-DWAMR_BUILD_LIB_WASI_THREADS=1 \
-DWAMR_BUILD_LIBC_BUILTIN=1 \
-DWAMR_BUILD_LIBC_WASI=1 \
-DWAMR_BUILD_REF_TYPES=1 \
-DWAMR_BUILD_SIMD=1 \
-DWAMR_BUILD_SHARED_MEMORY=1 \
-DWAMR_BUILD_TAIL_CALL=1 \
-DWAMR_BUILD_THREAD_MGR=1
cmake -S . -B build ${{ matrix.build_options }}
cmake --build build --config Release --parallel 4
working-directory: ${{ inputs.cwd }}

- name: compress the binary
- name: Compress the binary on Windows
if: inputs.runner == 'windows-latest'
run: |
tar -czf iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm.exe
Compress-Archive -Path iwasm.exe -DestinationPath iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
mv iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.* ../
working-directory: ${{ inputs.cwd }}/build/Release

- name: compress the binary on non-Windows
if: inputs.runner != 'windows-latest'
run: |
tar czf iwasm-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz iwasm
zip iwasm-${{ inputs.ver_num }}-${{ inputs.runner }}.zip iwasm
tar 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

- name: upload release tar.gz
Expand All @@ -93,8 +147,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ${{ inputs.cwd }}/build/iwasm-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz
asset_name: iwasm-${{ inputs.ver_num }}-${{ inputs.arch }}-${{ inputs.runner }}.tar.gz
asset_path: ${{ inputs.cwd }}/build/iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz
asset_name: iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.arch }}-${{ inputs.runner }}.tar.gz
asset_content_type: application/x-gzip

- name: upload release zip
Expand All @@ -103,6 +157,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ${{ inputs.cwd }}/build/iwasm-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
asset_name: iwasm-${{ inputs.ver_num }}-${{ inputs.arch }}-${{ inputs.runner }}.zip
asset_path: ${{ inputs.cwd }}/build/iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
asset_name: iwasm${{ matrix.suffix }}-${{ inputs.ver_num }}-${{ inputs.arch }}-${{ inputs.runner }}.zip
asset_content_type: application/zip
33 changes: 29 additions & 4 deletions .github/workflows/build_llvm_libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
description: "A cached key of LLVM libraries"
value: ${{ jobs.build_llvm_libraries.outputs.key}}

permissions:
contents: read

jobs:
build_llvm_libraries:
runs-on: ${{ inputs.os }}
Expand All @@ -36,13 +39,17 @@ jobs:
image: ${{ inputs.container_image }}
outputs:
key: ${{ steps.create_lib_cache_key.outputs.key}}
permissions:
contents: read
actions: write # for uploading cached artifact

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

- name: install dependencies for non macos-14
if: inputs.os != 'macos-14'
shell: bash
run: /usr/bin/env python3 -m pip install -r requirements.txt
working-directory: build-scripts

Expand All @@ -51,18 +58,23 @@ jobs:
run: /usr/bin/env python3 -m pip install -r requirements.txt --break-system-packages
working-directory: build-scripts

- name: retrieve the last commit ID
- name: Retrieve the last commit ID
id: get_last_commit
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
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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

# Bump the prefix number to evict all previous caches and
# enforce a clean build, in the unlikely case that some
# weird build error occur and llvm/build becomes a potential
# suspect.
- name: form the cache key of libraries
id: create_lib_cache_key
run: echo "key=0-llvm-libraries-${{ inputs.os }}-${{ inputs.arch }}-${{ steps.get_last_commit.outputs.last_commit }}${{ inputs.cache_key_suffix }}" >> $GITHUB_OUTPUT
shell: bash
run: |
echo "key=0-llvm-libraries-${{ inputs.os }}-${{ inputs.arch }}-${{ steps.get_last_commit.outputs.last_commit }}${{ inputs.cache_key_suffix }}" >> $GITHUB_OUTPUT

- name: Cache LLVM libraries
id: retrieve_llvm_libs
Expand Down Expand Up @@ -107,7 +119,20 @@ jobs:
- run: brew install ccache ninja
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && startsWith(inputs.os, 'macos')

- uses: actions/cache@v4
with:
path: ~/.cache/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 == 'windows-latest'

# Install tools on Windows
- run: choco install -y ccache ninja
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true' && inputs.os == 'windows-latest'

- name: Build LLVM libraries
if: steps.retrieve_llvm_libs.outputs.cache-hit != 'true'
shell: bash
run: /usr/bin/env python3 ./build_llvm.py ${{ inputs.extra_build_llvm_options }} --arch ${{ inputs.arch }}
working-directory: build-scripts
8 changes: 8 additions & 0 deletions .github/workflows/build_wamr_lldb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ on:
required: false
default: "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz"

permissions:
contents: read

jobs:
try_reuse:
permissions:
contents: write # for uploading release artifacts
uses: ./.github/workflows/reuse_latest_release_binaries.yml
with:
binary_name_stem: "wamr-lldb-${{ inputs.ver_num }}-${{ inputs.arch }}-${{ inputs.runner }}"
Expand All @@ -46,6 +51,9 @@ jobs:
PYTHON_VERSION: '3.10'
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
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
permissions:
contents: write # for uploading release artifacts

steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build_wamr_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ on:
type: string
required: true

permissions:
contents: read

jobs:
build:
runs-on: ${{ inputs.runner }}
permissions:
contents: write # for uploading release artifacts

steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build_wamr_vscode_ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ on:
type: string
required: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write # for uploading release artifacts

steps:
- uses: actions/checkout@v4

Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/build_wamrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ on:
type: string
required: false

permissions:
contents: read

jobs:
build:
runs-on: ${{ inputs.runner }}
permissions:
contents: write # for uploading release artifacts

steps:
- uses: actions/checkout@v4

Expand All @@ -56,8 +62,16 @@ jobs:
cmake --build build --config Release --parallel 4
working-directory: wamr-compiler

- name: compress the binary
if: inputs.release
- name: Compress the binary on Windows
if: inputs.runner == 'windows-latest' && inputs.release
run: |
tar -czf wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.tar.gz wamrc.exe
Compress-Archive -Path wamrc.exe -DestinationPath wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip
mv wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.* ../
working-directory: wamr-compiler/build/Release

- 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
zip wamrc-${{ inputs.ver_num }}-${{ inputs.runner }}.zip wamrc
Expand Down
Loading
Loading