This is a GitHub action that makes the logical CPU core count on the action runner available for jobs.
Logical core count.
This is not the same as physical core count.
count plus one.
count plus two.
- uses: friendlyanon/fetch-core-count@v1
id: cores
- name: Run CMake with optimal job count
run: cmake --build build -j ${{ steps.cores.outputs.plus_one }}