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:
24
24
linux :
25
25
imageName : ' ubuntu-16.04'
26
26
ExecutableSuffix : ' '
27
+ Exports : ' '
27
28
mac :
28
29
imageName : ' macOS-latest'
29
30
ExecutableSuffix : ' '
31
+ Exports : ' CGO_ENABLED=1 MACOSX_DEPLOYMENT_TARGET=10.14 '
30
32
windows :
31
33
imageName : ' vs2017-win2016'
32
34
ExecutableSuffix : ' .exe'
35
+ Exports : ' '
33
36
pool :
34
37
vmImage : $(imageName)
35
38
steps :
36
39
- task : GoTool@0
37
40
inputs :
38
- version : ' 1.12 '
41
+ version : ' 1.13 '
39
42
- script : |
40
- go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)"
43
+ $(Exports) go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)"
41
44
go test ./...
42
45
displayName: 'Build and Test'
43
46
- task : ArchiveFiles@2
You can’t perform that action at this time.
0 commit comments