File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,19 @@ steps:
50
50
displayName : ' Go: build sqlcmd'
51
51
inputs :
52
52
command : ' build'
53
- arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }} -ldflags="-X main.version=${{ parameters.VersionTag }}"'
53
+ arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }} -ldflags="-s -w -X main.version=${{ parameters.VersionTag }}"'
54
+ workingDirectory : ' $(Build.SourcesDirectory)/cmd/modern'
55
+ env :
56
+ GOOS : ${{ parameters.OS }}
57
+ GOARCH : ${{ parameters.Arch }}
58
+ GOBIN : $(Build.SourcesDirectory)
59
+ CGO_ENABLED : 0 # Enables Docker image based off 'scratch'
60
+
61
+ - task : Go@0
62
+ displayName : ' Go: build sqlcmd with debug symbols'
63
+ inputs :
64
+ command : ' build'
65
+ arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }}_debug -ldflags="-X main.version=${{ parameters.VersionTag }}"'
54
66
workingDirectory : ' $(Build.SourcesDirectory)/cmd/modern'
55
67
env :
56
68
GOOS : ${{ parameters.OS }}
You can’t perform that action at this time.
0 commit comments