File tree 2 files changed +17
-7
lines changed
2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ parameters:
12
12
default : $(Build.BuildNumber)
13
13
- name : BinaryName
14
14
type : string
15
+ - name : BinaryExt
16
+ type : string
15
17
16
18
steps :
17
19
- task : GoTool@0
50
52
displayName : ' Go: build sqlcmd'
51
53
inputs :
52
54
command : ' build'
53
- arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }} -ldflags="-s -w -X main.version=${{ parameters.VersionTag }}"'
55
+ arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }}${{ parameters.BinaryExt }} -ldflags="-s -w -X main.version=${{ parameters.VersionTag }}"'
54
56
workingDirectory : ' $(Build.SourcesDirectory)/cmd/modern'
55
57
env :
56
58
GOOS : ${{ parameters.OS }}
62
64
displayName : ' Go: build sqlcmd with debug symbols'
63
65
inputs :
64
66
command : ' build'
65
- arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }}_debug -ldflags="-X main.version=${{ parameters.VersionTag }}"'
67
+ arguments : ' -o $(Build.BinariesDirectory)/${{ parameters.BinaryName }}_debug${{ parameters.BinaryExt }} -ldflags="-X main.version=${{ parameters.VersionTag }}"'
66
68
workingDirectory : ' $(Build.SourcesDirectory)/cmd/modern'
67
69
env :
68
70
GOOS : ${{ parameters.OS }}
Original file line number Diff line number Diff line change @@ -24,48 +24,56 @@ stages:
24
24
os :
25
25
arch :
26
26
binaryName : ' sqlcmd'
27
+ binaryExt : ' '
27
28
mac :
28
29
imageName : ' macOS-latest'
29
30
artifact : DarwinAmd64
30
31
os :
31
32
arch :
32
33
binaryName : ' sqlcmd'
34
+ binaryExt : ' '
33
35
macArm :
34
36
imageName : ' macOS-latest'
35
37
artifact : DarwinArm64
36
38
os :
37
39
arch : arm64
38
40
binaryName : ' sqlcmd'
41
+ binaryExt : ' '
39
42
windows :
40
43
imageName : ' windows-latest'
41
44
artifact : WindowsAmd64
42
45
os :
43
46
arch :
44
- binaryName : ' sqlcmd.exe'
47
+ binaryName : ' sqlcmd'
48
+ binaryExt : ' .exe'
45
49
linuxArm :
46
50
imageName : ' ubuntu-latest'
47
51
artifact : LinuxArm64
48
52
os :
49
53
arch : arm64
50
54
binaryName : ' sqlcmd'
55
+ binaryExt : ' '
51
56
windowsArm :
52
57
imageName : ' windows-latest'
53
58
artifact : WindowsArm
54
59
os :
55
60
arch : arm
56
- binaryName : ' sqlcmd.exe'
61
+ binaryName : ' sqlcmd'
62
+ binaryExt : ' .exe'
57
63
windowsArm64 :
58
64
imageName : ' windows-latest'
59
65
artifact : WindowsArm64
60
66
os :
61
67
arch : arm64
62
- binaryName : ' sqlcmd.exe'
68
+ binaryName : ' sqlcmd'
69
+ binaryExt : ' .exe'
63
70
linuxs390x :
64
71
imageName : ' ubuntu-latest'
65
72
artifact : LinuxS390x
66
73
os :
67
74
arch : s390x
68
75
binaryName : ' sqlcmd'
76
+ binaryExt : ' .exe'
69
77
pool :
70
78
vmImage : $(imageName)
71
79
steps :
@@ -79,7 +87,7 @@ stages:
79
87
ArtifactName : $(artifact)
80
88
VersionTag : $(getVersion.VERSION_TAG)
81
89
BinaryName : $(binaryName)
82
-
90
+ BinaryExt : $(binaryExt)
83
91
- stage : CreatePackages
84
92
displayName : Create packages to publish
85
93
jobs :
@@ -97,7 +105,7 @@ stages:
97
105
inputs :
98
106
ConnectedServiceName : ' Code Signing'
99
107
FolderPath : ' $(Pipeline.Workspace)'
100
- Pattern : ' sqlcmd.exe'
108
+ Pattern : ' sqlcmd* .exe'
101
109
signConfigType : ' inlineSignParams'
102
110
inlineOperation : |
103
111
[
You can’t perform that action at this time.
0 commit comments