Skip to content

friendlyanon/fetch-core-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch CPU core count CI build

This is a GitHub action that makes the logical CPU core count on the action runner available for jobs.

Outputs

count

Logical core count.
This is not the same as physical core count.

plus_one

count plus one.

plus_two

count plus two.

Example usage

- 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 }}

License

MIT License

About

Make the logical CPU core count available in jobs

Resources

License

Stars

Watchers

Forks

Packages

No packages published