From 25eb6f51aaf5a85d47dc11d0cb94341f15d9c23c Mon Sep 17 00:00:00 2001 From: Diego Reis Date: Mon, 28 Jul 2025 17:07:18 -0300 Subject: [PATCH] Dinamically set cmake's parallel level based on the amount of cpus available --- .github/workflows/napi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/napi.yml b/.github/workflows/napi.yml index 162345c8f..921ab188b 100644 --- a/.github/workflows/napi.yml +++ b/.github/workflows/napi.yml @@ -49,7 +49,7 @@ jobs: tar -xvf wasi-sdk-25.0-x86_64-linux.tar.gz build: | export WASI_SDK_PATH="$(pwd)/wasi-sdk-25.0-x86_64-linux" - export CMAKE_BUILD_PARALLEL_LEVEL=2 + export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) export TARGET_CXXFLAGS="--target=wasm32-wasi-threads --sysroot=$(pwd)/wasi-sdk-25.0-x86_64-linux/share/wasi-sysroot -pthread -mllvm -wasm-enable-sjlj -lsetjmp" export TARGET_CFLAGS="$TARGET_CXXFLAGS" yarn build --target wasm32-wasip1-threads