Skip to content

Commit e8103c5

Browse files
author
Akos Kitta
committed
Build with MACOSX_DEPLOYMENT_TARGET on macOS.
Moved to `[email protected]`. Signed-off-by: Akos Kitta <[email protected]>
1 parent 1241c16 commit e8103c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: azure-pipelines.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,23 @@ jobs:
2424
linux:
2525
imageName: 'ubuntu-16.04'
2626
ExecutableSuffix: ''
27+
Exports: ''
2728
mac:
2829
imageName: 'macOS-latest'
2930
ExecutableSuffix: ''
31+
Exports: 'CGO_ENABLED=1 MACOSX_DEPLOYMENT_TARGET=10.14 '
3032
windows:
3133
imageName: 'vs2017-win2016'
3234
ExecutableSuffix: '.exe'
35+
Exports: ''
3336
pool:
3437
vmImage: $(imageName)
3538
steps:
3639
- task: GoTool@0
3740
inputs:
38-
version: '1.12'
41+
version: '1.13'
3942
- script: |
40-
go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)"
43+
$(Exports)go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)"
4144
go test ./...
4245
displayName: 'Build and Test'
4346
- task: ArchiveFiles@2

0 commit comments

Comments
 (0)