File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
release/windows/msi/resources Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,15 @@ trigger:
55
66pr : none
77
8+ parameters :
9+ - name : PushToGithub
10+ default : true
11+ type : boolean
12+ displayName : Push packages to github
13+
814stages :
915 - stage : Compile
10- displayName : Compile sqlcmd on all 3 platforms
16+ displayName : Compile sqlcmd on all supported platforms
1117 jobs :
1218 - job : Sqlcmd
1319 strategy :
@@ -37,6 +43,11 @@ stages:
3743 artifact : WindowsArm
3844 os :
3945 arch : arm
46+ linuxs390x :
47+ imageName : ' ubuntu-latest'
48+ artifact : LinuxS390x
49+ os :
50+ arch : s390x
4051 pool :
4152 vmImage : $(imageName)
4253 steps :
@@ -165,13 +176,23 @@ stages:
165176 tarCompression : ' bz2'
166177 archiveFile : ' $(Build.ArtifactStagingDirectory)/sqlcmd-$(versionTag)-linux-arm64.tar.bz2'
167178
179+ - task : ArchiveFiles@2
180+ displayName : Tar Linux s390x binary
181+ inputs :
182+ rootFolderOrFile : ' $(Pipeline.Workspace)\SqlcmdLinuxS390x'
183+ includeRootFolder : false
184+ archiveType : ' tar'
185+ tarCompression : ' bz2'
186+ archiveFile : ' $(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-s390x.tar.bz2'
187+
168188 - task : PublishPipelineArtifact@1
169189 displayName : ' Publish release archives'
170190 inputs :
171191 targetPath : $(Build.ArtifactStagingDirectory)
172192 artifactName : SqlcmdRelease
173193
174194 - task : GitHubRelease@1
195+ condition : eq('${{ parameters.PushToGithub}}', 'true')
175196 inputs :
176197 gitHubConnection : ' gosqlcmd_github'
177198 repositoryName : ' $(Build.Repository.Name)'
You can’t perform that action at this time.
0 commit comments