Skip to content

Commit

Permalink
Fix CPU core count
Browse files Browse the repository at this point in the history
  • Loading branch information
J G committed Oct 18, 2024
1 parent 8f94ad6 commit 6a454fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ jobs:
build-mac:
runs-on: macOS-latest
steps:
- run: printf '%s\n%s' $(( $(sysctl -n hw.memsize) * 4 / (1073741824 * 11) )) $(nproc) | grep -v '^0$' | sort -n | head -n1
- run: printf '1\n%s\n%s' $(( $(sysctl -n hw.memsize) * 4 / (1073741824 * 11) )) $(sysctl -n hw.logicalcpu) | grep -v '^0$' | sort -n | head -n1

0 comments on commit 6a454fe

Please sign in to comment.