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 : Compile_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 :
@@ -163,13 +174,23 @@ stages:
163174 tarCompression : ' bz2'
164175 archiveFile : ' $(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-arm64.tar.bz2'
165176
177+ - task : ArchiveFiles@2
178+ displayName : Tar Linux s390x binary
179+ inputs :
180+ rootFolderOrFile : ' $(Pipeline.Workspace)\SqlcmdLinuxS390x'
181+ includeRootFolder : false
182+ archiveType : ' tar'
183+ tarCompression : ' bz2'
184+ archiveFile : ' $(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-s390x.tar.bz2'
185+
166186 - task : PublishPipelineArtifact@1
167187 displayName : ' Publish release archives'
168188 inputs :
169189 targetPath : $(Build.ArtifactStagingDirectory)
170190 artifactName : SqlcmdRelease
171191
172192 - task : GitHubRelease@1
193+ condition : eq('${{ parameters.PushToGithub}}', 'true')
173194 inputs :
174195 gitHubConnection : ' gosqlcmd_github'
175196 repositoryName : ' $(Build.Repository.Name)'
You can’t perform that action at this time.
0 commit comments