From 0f29a211353a6dce3e7c08fbd91631e98cc06583 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Fri, 28 Jun 2019 08:32:50 +1000 Subject: [PATCH] Add mac build --- azure-pipelines.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 541bdb76..ea6d0b05 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,17 @@ trigger: - develop +strategy: + matrix: + linux: + imageName: 'ubuntu-16.04' + mac: + imageName: 'macos-10.13' + # windows: + # imageName: 'vs2017-win2016' + pool: - vmImage: 'ubuntu-latest' + vmImage: $(imageName) variables: GOBIN: '$(GOPATH)/bin' # Go binaries path @@ -17,7 +26,9 @@ variables: modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code steps: -- script: | + +# Linux +- bash: | mkdir -p '$(GOBIN)' mkdir -p '$(GOPATH)/pkg' mkdir -p '$(modulePath)' @@ -28,10 +39,12 @@ steps: echo '##vso[task.prependpath]$(GOROOT)/bin' displayName: 'Set up the Go workspace' -- script: | +- bash: | go version go get -v -t -d ./... cd cmd/wails go build -v . workingDirectory: '$(modulePath)' displayName: 'Get dependencies, then build' + +# Windows TBD