diff options
author | Cristian Adam <cristian.adam@qt.io> | 2021-12-03 16:24:55 +0100 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2021-12-06 10:32:36 +0000 |
commit | 5e8fd8d0f8a72f36d8c7fd93a9f2bdddb6900907 (patch) | |
tree | f0a11c30535a7c2a2b12fbe2a22954fdebcc18af /.github | |
parent | 366c6fde89bce8e4a3a69718ee7927694c1ca2f7 (diff) | |
download | qt-creator-5e8fd8d0f8a72f36d8c7fd93a9f2bdddb6900907.tar.gz |
GitHub Actions: Limit the number of cores to 75% for testing
Hopefully this will help with the macOS host which tends to fail
at running tests with:
The hosted runner: GitHub Actions X lost communication with the server.
Anything in your workflow that terminates the runner process, starves
it for CPU/Memory, or blocks its network access can cause this error.
Change-Id: I2ead1efd1526332cc2045fee7db4a76831f2e333
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build_cmake.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index d09b385b87..2d83c2663d 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -541,6 +541,7 @@ jobs: run: | include(ProcessorCount) ProcessorCount(N) + math(EXPR N "(75 * ${N}) / 100") set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON") |