From 2b76385eec451b8338dc6c90fcb24091cad11426 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Tue, 27 Aug 2024 09:16:01 +0900 Subject: [PATCH] CI: Avoid stack overflow on Wasm tests by extending the stack size --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d6b91d..48eeb82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,8 @@ jobs: with: swift-version: "wasm-5.9.2-RELEASE" - name: Build tests - run: swift build --triple wasm32-unknown-wasi --build-tests + # Extend the stack size to avoid stack overflow in the test suites + run: swift build --triple wasm32-unknown-wasi --build-tests -Xlinker -z -Xlinker stack-size=$((1024 * 1024)) - name: Run tests run: wasmtime .build/debug/swift-custom-dumpPackageTests.wasm