.circleci/config.yml: limit the number of parallel tasks (#1932)
If unlimited, it takes too much memory and the job is killed by the CI. Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
b85f203187
commit
7be683bcaf
|
@ -46,8 +46,11 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
command: make
|
command: make
|
||||||
environment:
|
environment:
|
||||||
# Run garbage collection more aggresively to avoid getting OOMed.
|
# By default Go uses GOMAXPROCS but a Circle CI executor has many
|
||||||
GOGC: "20"
|
# cores (> 30) while the CPU and RAM resources are throttled. If we
|
||||||
|
# don't limit this to the number of allocated cores, the job is
|
||||||
|
# likely to get OOMed and killed.
|
||||||
|
GOOPTS: "-p 2"
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
curl -s -L https://github.com/protocolbuffers/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip > /tmp/protoc.zip
|
curl -s -L https://github.com/protocolbuffers/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip > /tmp/protoc.zip
|
||||||
|
|
Loading…
Reference in New Issue