2019-04-06 19:24:41 -05:00
|
|
|
# 6 april 2019
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
os: ''
|
|
|
|
arch: ''
|
|
|
|
toolchain: ''
|
|
|
|
libtype: ''
|
|
|
|
libfiles: ''
|
|
|
|
osHeader: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- powershell: |
|
|
|
|
pushd build\meson-out
|
|
|
|
Copy-Item @("..\..\ui.h","..\..\${{ parameters.osHeader }}") -Destination .
|
2019-04-06 19:52:38 -05:00
|
|
|
Compress-Archive -Destination $(Build.ArtifactStagingDirectory)\libui-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.toolchain }}-${{ parameters.libtype }}.zip -Path @("${{ parameters.libfiles }}".Split(" ") + @("ui.h","${{ parameters.osHeader}}"))
|
|
|
|
Compress-Archive -Destination $(Build.ArtifactStagingDirectory)\examples-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}.zip -Path @("$(releaseExamples)".Split(" ") | % {$_ + ".exe"})
|
|
|
|
Remove-Item @("ui.h","${{ parameters.osHeader }}")
|
2019-04-06 19:24:41 -05:00
|
|
|
popd
|
|
|
|
displayName: 'Create Artifacts'
|
2019-04-07 22:01:50 -05:00
|
|
|
- ${{ if eq(Build.SourceBranchName, "master") }}:
|
2019-04-07 21:58:21 -05:00
|
|
|
- task: GitHubRelease@0
|
|
|
|
condition: eq(Build.SourceBranchName, "master")
|
|
|
|
inputs:
|
|
|
|
gitHubConnection: andlabs
|
|
|
|
repositoryName: andlabs/libui
|
|
|
|
action: 'edit'
|
|
|
|
addChangelog: false
|
|
|
|
assets: '$(Build.ArtifactStagingDirectory)/*'
|
|
|
|
assetUploadMode: 'replace'
|