diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 97943c536..d97a9ef02 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -47,9 +47,35 @@ pipeline { matrix { agent {label "${PLATFORM}"} axes { + axis { + name 'GO_VERSION' + values '1.15.8', '1.16' + } axis { name 'PLATFORM' - values 'macosx', 'ubuntu-20 && immutable', 'windows-2012-r2 && windows-immutable' + values 'macosx&&x86_64', 'macosx&&arm64', 'ubuntu-20 && immutable', 'windows-2012-r2 && windows-immutable' + } + } + excludes { + exclude { + axis { + name 'GO_VERSION' + values '1.15.8' + } + axis { + name 'PLATFORM' + values 'macosx&&arm64' + } + } + exclude { + axis { + name 'GO_VERSION' + values '1.16' + } + axis { + name 'PLATFORM' + notValues 'macosx&&arm64' + } } } stages { @@ -57,7 +83,7 @@ pipeline { steps { deleteDir() unstash 'source' - withGoEnv(){ + withGoEnv(version: env.GO_VERSION){ dir("${BASE_DIR}"){ cmd(label: 'Go build', script: 'go build') } @@ -66,7 +92,7 @@ pipeline { } stage('test'){ steps { - withGoEnv(){ + withGoEnv(version: env.GO_VERSION){ dir("${BASE_DIR}"){ goTestJUnit(options: '-v ./...', output: 'junit-report.xml') buildExamples()