Skip to content

Commit c1b4166

Browse files
committed
[build] Use .exe suffix for Windows
1 parent 485a8f8 commit c1b4166

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: azure-pipelines.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,21 @@ jobs:
2323
matrix:
2424
linux:
2525
imageName: 'ubuntu-16.04'
26+
ExecutableSuffix: ''
2627
mac:
2728
imageName: 'macos-10.13'
29+
ExecutableSuffix: ''
2830
windows:
2931
imageName: 'vs2017-win2016'
32+
ExecutableSuffix: '.exe'
3033
pool:
3134
vmImage: $(imageName)
3235
steps:
3336
- task: GoTool@0
3437
inputs:
3538
version: '1.12'
3639
- script: |
37-
go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)"
40+
go build -o "$(Build.BinariesDirectory)/$(Agent.OS)_amd64/$(ExecutableName)$(ExecutableSuffix)"
3841
go test ./...
3942
displayName: 'Build and Test'
4043
- task: ArchiveFiles@2

0 commit comments

Comments
 (0)