ci: fix GOCACHE and GOPATH to avoid poisoning (#125)

We've had this issue before with some `go-waku` builds:
https://github.com/waku-org/go-waku/pull/512

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-06-13 10:29:01 +02:00 committed by GitHub
parent 9c81b72711
commit fe0361a5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 11 deletions

View File

@ -7,8 +7,9 @@ pipeline {
}
environment {
GOPATH = '/tmp/go'
GOCACHE = '/tmp/'
/* Avoid cache poisoning by other jobs. */
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
GOPATH = "${env.WORKSPACE_TMP}/go"
}
options {

View File

@ -2,12 +2,13 @@ library 'status-jenkins-lib@v1.6.0'
pipeline {
agent {
label 'macos && aarch64'
label 'macos && aarch64 && nix-2.11'
}
environment {
GOPATH = '/tmp/go'
GOCACHE = '/tmp/'
/* Avoid cache poisoning by other jobs. */
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
GOPATH = "${env.WORKSPACE_TMP}/go"
}
options {