Skip to content

Commit

Permalink
[CI] Use MacOS for x86_64 and arm64 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Mar 9, 2021
1 parent 6a90009 commit 7eca302
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,43 @@ 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 {
stage('build'){
steps {
deleteDir()
unstash 'source'
withGoEnv(){
withGoEnv(version: env.GO_VERSION){
dir("${BASE_DIR}"){
cmd(label: 'Go build', script: 'go build')
}
Expand All @@ -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()
Expand Down

0 comments on commit 7eca302

Please sign in to comment.