.travis: set lower GOGC value

As documented on https://golangci-lint.run/usage/performance/ , a lower
GOGC value causes less peak mem consumption when running the linter.

Exceeding 3Gb is a common cause for build failures, according to
https://docs.travis-ci.com/user/common-build-problems/#my-build-script-is-killed-without-any-error
This commit is contained in:
Martin Holst Swende 2023-12-19 09:18:52 +01:00
parent 952b343cb3
commit 7462f8d2a3
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -19,7 +19,7 @@ jobs:
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go lint
- GOGC=10 go run build/ci.go lint
# These builders create the Docker sub-images for multi-arch push and each
# will attempt to push the multi-arch image if they are the last builder