From 7016bdb778f784288f3158e1a45b79d40b85160c Mon Sep 17 00:00:00 2001 From: dcvz Date: Sat, 25 May 2024 00:14:04 +0200 Subject: [PATCH] Use available CPU cores on Windows --- .github/workflows/validate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 046b931..11f22de 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -95,4 +95,6 @@ jobs: run: | # enable ccache set $env:PATH="$env:USERPROFILE/.cargo/bin;$env:PATH" - cmake --build cmake-build --config ${{ matrix.type }} --target librecomp -j 8 + $cpuCores = (Get-CimInstance -ClassName Win32_Processor).NumberOfLogicalProcessors + + cmake --build cmake-build --config ${{ matrix.type }} --target librecomp -j $cpuCores