File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments