Skip to content

Add s390x build #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion build/azure-pipelines/build-product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ trigger:
tags:
include:
- v*
branches:
include:
- main

pr: none

parameters:
- name: PushToGithub
default: true
type: boolean
displayName: Push packages to github

stages:
- stage: Compile
displayName: Compile sqlcmd on all 3 platforms
displayName: Compile sqlcmd on all supported platforms
jobs:
- job: Compile_sqlcmd
strategy:
Expand Down Expand Up @@ -37,6 +46,11 @@ stages:
artifact: WindowsArm
os:
arch: arm
linuxs390x:
imageName: 'ubuntu-latest'
artifact: LinuxS390x
os:
arch: s390x
pool:
vmImage: $(imageName)
steps:
Expand Down Expand Up @@ -163,13 +177,23 @@ stages:
tarCompression: 'bz2'
archiveFile: '$(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-arm64.tar.bz2'

- task: ArchiveFiles@2
displayName: Tar Linux s390x binary
inputs:
rootFolderOrFile: '$(Pipeline.Workspace)\SqlcmdLinuxS390x'
includeRootFolder: false
archiveType: 'tar'
tarCompression: 'bz2'
archiveFile: '$(Build.ArtifactStagingDirectory)/sqlcmd-$(VERSION_TAG)-linux-s390x.tar.bz2'

- task: PublishPipelineArtifact@1
displayName: 'Publish release archives'
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
artifactName: SqlcmdRelease

- task: GitHubRelease@1
condition: eq('${{ parameters.PushToGithub}}', 'true')
inputs:
gitHubConnection: 'gosqlcmd_github'
repositoryName: '$(Build.Repository.Name)'
Expand Down