Skip to content

Commit

Permalink
[ci] Produce final release artifact and upload it
Browse files Browse the repository at this point in the history
- Upload all release tarballs to Azure Pipelines
- Upload all release tarballs from tags to GitHub releases
  • Loading branch information
imphil committed Oct 30, 2019
1 parent 7044667 commit 542e220
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,36 @@ stages:
- publish: $(Build.ArtifactStagingDirectory)/dist-partial-top_earlgrey_nexysvideo.tar
artifact: dist-partial-top_earlgrey_nexysvideo
displayName: 'Upload partial distribution artifacts'

- job: "deploy_releaseartifacts"
displayName: "Package and deploy release distribution"
pool:
vmImage: "ubuntu-16.04"
dependsOn:
- sw_build
- top_earlgrey_verilator
- top_earlgrey_nexysvideo
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: current
targetPath: '$(Build.ArtifactStagingDirectory)/dist-partial-download'
- bash: |
OT_VERSION=$(git describe --always)
cd "$(Build.ArtifactStagingDirectory)"
find "$(Build.ArtifactStagingDirectory)/dist-partial-download" -iname '*.tar' -exec tar --overwrite -xf {} \;
mv dist opentitan-$OT_VERSION
mkdir -p dist-final
tar -cJf dist-final/opentitan-$OT_VERSION.tar.xz opentitan-$OT_VERSION
displayName: 'Create final dist directory out of partial ones'
- publish: $(Build.ArtifactStagingDirectory)/dist-final
artifact: opentitan-dist
displayName: "Upload release artifacts as Azure artifact"
- task: GithubRelease@0
displayName: 'Upload to GitHub releases (only tags)'
inputs:
gitHubConnection: opentitan-release-upload
repositoryName: lowrisc/opentitan
addChangeLog: false
assets: |
$(Build.ArtifactStagingDirectory)/dist-final/*

0 comments on commit 542e220

Please sign in to comment.