File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ steps :
2+ - task : GoTool@0
3+ inputs :
4+ version : ' 1.16.5'
5+
6+ - task : Go@0
7+ displayName : ' Go: get dependencies'
8+ inputs :
9+ command : ' get'
10+ arguments : ' -d'
11+ workingDirectory : ' $(Build.SourcesDirectory)/cmd/sqlcmd'
12+
13+ - task : Go@0
14+ displayName : ' Go: build sqlcmd'
15+ inputs :
16+ command : ' build'
17+ argumens : ' -o $(Build.BinariesDirectory)'
18+ workingDirectory : ' $(Build.SourcesDirectory)/cmd/sqlcmd'
19+
20+ - task : CopyFiles@2
21+ inputs :
22+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
23+ SourceFolder : ' $(Build.BinariesDirectory)'
24+ Contents : ' **'
25+
26+ - task : PublishPipelineArtifact@1
27+ displayName : ' Publish binary'
28+ inputs :
29+ targetPath : $(Build.ArtifactStagingDirectory)
30+ artifactName : Sqlcmd$(Agent.OS)
31+
Original file line number Diff line number Diff line change 1+ stages :
2+ - stage : Compile
3+ displayName : Compile sqlcmd on all 3 platforms
4+ jobs :
5+ - job : Compile sqlcmd
6+ strategy :
7+ matrix :
8+ linux :
9+ imageName : ' ubuntu-latest'
10+ mac :
11+ imageName : ' macOS-latest'
12+ windows :
13+ imageName : ' windows-latest'
14+ pool :
15+ vmImage : $(imageName)
16+ steps :
17+ - template : build-common.yml
You can’t perform that action at this time.
0 commit comments