Skip to content

Commit 703dc8c

Browse files
committed
add ci: unit tests on X86_32
1 parent 6e5e33e commit 703dc8c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/compilation_on_android_ubuntu.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ jobs:
315315
fail-fast: false
316316
matrix:
317317
os: [ubuntu-22.04]
318+
build_target: [
319+
"X86_64",
320+
"X86_32",
321+
]
318322
include:
319323
- os: ubuntu-22.04
320324
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
@@ -351,10 +355,16 @@ jobs:
351355
cmake --build . --config Release --parallel 4
352356
working-directory: wamr-compiler
353357

358+
- name: Install dependencies for X86_32
359+
if: matrix.build_target == 'X86_32'
360+
run: |
361+
sudo apt-get update
362+
sudo apt-get install -y g++-multilib
363+
354364
- name: Build and run unit tests
355365
run: |
356366
mkdir build && cd build
357-
cmake ..
367+
cmake .. -DWAMR_BUILD_TARGET=${{ matrix.build_target }}
358368
cmake --build . --config Release --parallel 4
359369
ctest
360370
working-directory: tests/unit

0 commit comments

Comments
 (0)