Skip to content

Commit 9350423

Browse files
pks-tgitster
authored andcommitted
gitlab-ci: restrict maximum number of link jobs on Windows
The hosted Windows runners on GitLab.com only have 7.5GB of RAM. Given that "link.exe" provided by Microsoft Visual Studio is multi-threaded by itself already and thus quite memory hungry this can quickly lead to memory starvation, out-of-memory situations and thus failed CI jobs. Fix the issue by limiting the number of concurrent linker jobs. The same issue hasn't been observed on GitHub Actions yet, probably because it got more than twice the amount of RAM with 16GB. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2c374ea commit 9350423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ build:msvc-meson:
169169
extends: .msvc-meson
170170
stage: build
171171
script:
172-
- meson setup build -Dperl=disabled
172+
- meson setup build -Dperl=disabled -Dbackend_max_links=1
173173
- meson compile -C build
174174
artifacts:
175175
paths:

0 commit comments

Comments
 (0)