Skip to content

Commit

Permalink
Use available CPU cores on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed May 24, 2024
1 parent 9a471c4 commit 7016bdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7016bdb

Please sign in to comment.