aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Furr <wfurr@google.com>2024-04-23 15:07:49 -0700
committerCopybara-Service <copybara-worker@google.com>2024-04-23 15:08:31 -0700
commitfe102cfbc138828da646d10285569101f6e3854b (patch)
tree1a8a636218cdbfe65dc7ccf3278e6a950109d700
parent6de0452dfcc37c40aa29a220c70657a348f23abf (diff)
downloadink-stroke-modeler-fe102cfbc138828da646d10285569101f6e3854b.tar.gz
Use 4 threads for cmake build and test execution.
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: 627517998
-rw-r--r--.github/workflows/cmake-test.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/cmake-test.yaml b/.github/workflows/cmake-test.yaml
index e9fe8c5..f580c28 100644
--- a/.github/workflows/cmake-test.yaml
+++ b/.github/workflows/cmake-test.yaml
@@ -22,7 +22,7 @@ jobs:
run: cmake .
- name: Build
- run: cmake --build .
+ run: cmake --build . -j4
- name: Test
- run: ctest
+ run: ctest -j4