Skip to content

Commit 14a79e1

Browse files
committed
Add CI checks with GC disabled
Signed-off-by: Máté Tokodi mate.tokodi@szteszoftver.hu
1 parent 8ea70f9 commit 14a79e1

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/actions.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,70 @@ jobs:
348348
run: |
349349
$RUNNER --engine="$GITHUB_WORKSPACE/out/extended/walrus" ${{ matrix.switch }} wasm-test-extended
350350
351+
build-test-no-gc-linux:
352+
runs-on: ubuntu-latest
353+
strategy:
354+
fail-fast: false
355+
matrix:
356+
mode: [debug]
357+
arch: [x64]
358+
switch: [--jit, ""]
359+
steps:
360+
- uses: actions/checkout@v4
361+
with:
362+
submodules: true
363+
- name: Install Packages
364+
run: |
365+
sudo apt update
366+
sudo apt install -y ninja-build gcc-multilib g++-multilib
367+
- name: Build ${{ matrix.arch}}
368+
env:
369+
BUILD_OPTIONS: -DWALRUS_ARCH=${{ matrix.arch }} -DWALRUS_HOST=linux -DWALRUS_MODE=${{ matrix.mode }} -DWALRUS_OUTPUT=shell -DWALRUS_GC=OFF -GNinja
370+
run: |
371+
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -H. -Bout/nogc $BUILD_OPTIONS
372+
ninja -Cout/nogc
373+
- name: "Remove GC tests"
374+
run: |
375+
rm -rf ./test/extended/gc
376+
- name: Run Tests
377+
run: |
378+
$RUNNER --engine="$GITHUB_WORKSPACE/out/nogc/walrus" ${{ matrix.switch }}
379+
380+
build-test-no-gc-on-macos-arm64:
381+
strategy:
382+
fail-fast: false
383+
matrix:
384+
mode: [debug]
385+
switch: [--jit, ""]
386+
runs-on: macos-latest
387+
steps:
388+
- uses: actions/checkout@v4
389+
with:
390+
submodules: true
391+
- name: Install Packages
392+
run: |
393+
brew update
394+
brew install ninja
395+
- name: Build arm64
396+
env:
397+
BUILD_OPTIONS: -DWALRUS_MODE=${{ matrix.mode }} -DWALRUS_OUTPUT=shell -DWALRUS_GC=OFF -GNinja
398+
run: |
399+
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -H. -Bout/mac $BUILD_OPTIONS
400+
ninja -Cout/mac
401+
- name: "Remove 2 test files due to stack overflow occurred by recursion calls in debug mode build by clang"
402+
if: matrix.mode == 'debug'
403+
run: |
404+
rm ./test/wasm-spec/core/call.wast
405+
rm ./test/wasm-spec/core/call_indirect.wast
406+
rm ./test/extended/gc/call_ref.wast
407+
- name: "Remove GC tests"
408+
run: |
409+
rm -rf ./test/extended/gc
410+
- name: Run Tests
411+
run: |
412+
#FIXME try-catch is unstable in macos build
413+
$RUNNER --engine="$GITHUB_WORKSPACE/out/mac/walrus" ${{ matrix.switch }}
414+
351415
build-test-performance-x64_x86:
352416
strategy:
353417
fail-fast: false

0 commit comments

Comments
 (0)