Skip to content

Commit 8a43475

Browse files
.github: Add shared lib builds
So far, no workflows would attempt to build the shared version of the iwasm library (namely, vmlib). Note that, as opposed to GC_EH_BUILD_OPTIONS and DEFAULT_BUILD_OPTIONS, the actual default options defined by the build system are assumed, for the sake of simplicity and avoiding repeated code.
1 parent 8d51a3c commit 8a43475

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/compilation_on_android_ubuntu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ jobs:
156156
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
157157
"-DWAMR_BUILD_MEMORY64=1",
158158
"-DWAMR_BUILD_MULTI_MEMORY=1",
159+
"-DWAMR_BUILD_SHARED=1",
159160
]
160161
os: [ubuntu-22.04]
161162
platform: [android, linux]
@@ -253,6 +254,9 @@ jobs:
253254
platform: android
254255
- make_options_run_mode: $LLVM_EAGER_JIT_BUILD_OPTIONS
255256
platform: android
257+
# android does not support WAMR_BUILD_SHARED in its CMakeLists.txt.
258+
- make_options_feature: "-DWAMR_BUILD_SHARED=1"
259+
platform: android
256260
include:
257261
- os: ubuntu-22.04
258262
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}

.github/workflows/nightly_run.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ jobs:
142142
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
143143
"-DWAMR_BUILD_MEMORY64=1",
144144
"-DWAMR_BUILD_MULTI_MEMORY=1",
145+
"-DWAMR_BUILD_SHARED=1",
145146
]
146147
os: [ubuntu-20.04]
147148
platform: [android, linux]

0 commit comments

Comments
 (0)