1
0
mirror of synced 2025-01-09 23:35:46 +00:00
nomos-node/ci/Jenkinsfile.prs.macos
Jakub fe0361a5b8
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>
2023-06-13 11:29:01 +03:00

48 lines
943 B
Plaintext

library 'status-jenkins-lib@v1.6.0'
pipeline {
agent {
label 'macos && aarch64 && nix-2.11'
}
environment {
/* Avoid cache poisoning by other jobs. */
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
GOPATH = "${env.WORKSPACE_TMP}/go"
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
stages {
stage('Check') {
steps { script {
nix.shell('cargo check --all --all-features')
nix.shell('cargo fmt -- --check')
nix.shell('cargo clippy --all --all-features -- --deny warnings')
} }
}
stage('Build') {
steps { script {
nix.shell('cargo build')
nix.shell('cargo build --all --all-features')
} }
}
stage('Test') {
steps { script {
nix.shell('cargo test --all --all-features')
} }
}
}
post {
cleanup { cleanWs() }
}
}