File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,21 @@ trigger:
2
2
tags :
3
3
include :
4
4
- v*
5
+ branches :
6
+ include :
7
+ - main
5
8
6
9
pr : none
7
10
11
+ parameters :
12
+ - name : PushToGithub
13
+ default : true
14
+ type : boolean
15
+ displayName : Push packages to github
16
+
8
17
stages :
9
18
- stage : Compile
10
- displayName : Compile sqlcmd on all 3 platforms
19
+ displayName : Compile sqlcmd on all supported platforms
11
20
jobs :
12
21
- job : Compile_sqlcmd
13
22
strategy :
@@ -37,6 +46,11 @@ stages:
37
46
artifact : WindowsArm
38
47
os :
39
48
arch : arm
49
+ linuxs390x :
50
+ imageName : ' ubuntu-latest'
51
+ artifact : LinuxS390x
52
+ os :
53
+ arch : s390x
40
54
pool :
41
55
vmImage : $(imageName)
42
56
steps :
@@ -163,13 +177,23 @@ stages:
163
177
tarCompression : ' bz2'
164
178
archiveFile : ' $(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-arm64.tar.bz2'
165
179
180
+ - task : ArchiveFiles@2
181
+ displayName : Tar Linux s390x binary
182
+ inputs :
183
+ rootFolderOrFile : ' $(Pipeline.Workspace)\SqlcmdLinuxS390x'
184
+ includeRootFolder : false
185
+ archiveType : ' tar'
186
+ tarCompression : ' bz2'
187
+ archiveFile : ' $(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-s390x.tar.bz2'
188
+
166
189
- task : PublishPipelineArtifact@1
167
190
displayName : ' Publish release archives'
168
191
inputs :
169
192
targetPath : $(Build.ArtifactStagingDirectory)
170
193
artifactName : SqlcmdRelease
171
194
172
195
- task : GitHubRelease@1
196
+ condition : eq('${{ parameters.PushToGithub}}', 'true')
173
197
inputs :
174
198
gitHubConnection : ' gosqlcmd_github'
175
199
repositoryName : ' $(Build.Repository.Name)'
You can’t perform that action at this time.
0 commit comments