From e8103c5a469a2cc4de740abf1bad29dddeaef0bd Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Thu, 28 May 2020 09:43:47 +0200 Subject: [PATCH] Build with `MACOSX_DEPLOYMENT_TARGET` on macOS. Moved to `go@1.13`. Signed-off-by: Akos Kitta --- azure-pipelines.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 190ee6b..5d8d25b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,20 +24,23 @@ jobs: linux: imageName: 'ubuntu-16.04' ExecutableSuffix: '' + Exports: '' mac: imageName: 'macOS-latest' ExecutableSuffix: '' + Exports: 'CGO_ENABLED=1 MACOSX_DEPLOYMENT_TARGET=10.14 ' windows: imageName: 'vs2017-win2016' ExecutableSuffix: '.exe' + Exports: '' pool: vmImage: $(imageName) steps: - task: GoTool@0 inputs: - version: '1.12' + version: '1.13' - script: | - go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)" + $(Exports)go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)" go test ./... displayName: 'Build and Test' - task: ArchiveFiles@2