Skip to content

Commit

Permalink
Use 4 threads for cmake build and test execution.
Browse files Browse the repository at this point in the history
The GitHub public runners have 3-4 cores:
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

This should significantly speed up CMake CI builds, which take 10-11 minutes
compared to 2-3 minutes for Bazel builds.

PiperOrigin-RevId: 627485464
  • Loading branch information
William Furr authored and Copybara-Service committed Apr 23, 2024
1 parent 6de0452 commit 53635d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake-test.yaml
Expand Up @@ -22,7 +22,7 @@ jobs:
run: cmake .

- name: Build
run: cmake --build .
run: cmake --build . -j4

- name: Test
run: ctest
run: ctest -j4

0 comments on commit 53635d7

Please sign in to comment.