1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 12:16:40 +08:00

gitlab-ci: pin macOS and Windows jobs to nonconcurrent runners

On macOS and Windows, our jobs use a `GIT_CLONE_PATH` that does not
contain `$CI_CONCURRENCY_ID` so that the build and test jobs always use
the same path.  Since we use shell runners for these platforms, all
concurrent jobs would use the same path and conflict.  Therefore we can
only use runners with a concurrency level of 1 for jobs in the `build`
and `test` stages.  However, jobs in the `test-ext` stage configure a
new build tree for the tests and therefore can use `$CI_CONCURRENCY_ID`
and support shell runners with higher concurrency levels.

Prepare to make that distinction in the future by pinning all jobs to
runners with a `nonconcurrent` tag.
This commit is contained in:
Brad King
2020-05-29 11:22:48 -04:00
parent 1336d11d9c
commit 0eebd0a0e3

View File

@@ -148,6 +148,8 @@
- macos
- shell
- xcode-11.5
- nonconcurrent # Use runners without concurrency for fixed GIT_CLONE_PATH.
# TODO: Use "concurrent" and "nonconcurrent" on individual jobs.
.windows_builder_tags: &windows_builder_tags
tags:
@@ -156,6 +158,8 @@
- shell
- vs2019
- msvc-19.25
- nonconcurrent # Use runners without concurrency for fixed GIT_CLONE_PATH.
# TODO: Use "concurrent" and "nonconcurrent" on individual jobs.
.before_script_unix: &before_script_unix
- .gitlab/ci/cmake.sh