libui/azure-pipelines/windows-artifacts.yml

26 lines
1.1 KiB
YAML
Raw Normal View History

2019-04-06 19:24:41 -05:00
# 6 april 2019
parameters:
os: ''
arch: ''
toolchain: ''
libtype: ''
libfiles: ''
osHeader: ''
steps:
- powershell: |
echo $PSVersionTable
2019-04-06 19:45:14 -05:00
Set-PSDebug -Trace 2
2019-04-06 19:24:41 -05:00
pushd build\meson-out
Copy-Item @("..\..\ui.h","..\..\${{ parameters.osHeader }}") -Destination .
2019-04-06 19:45:14 -05:00
echo 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}}"))
echo Compress-Archive `-Destination $(Build.ArtifactStagingDirectory)\examples-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}.zip `-Path @("$(releaseExamples)".Split(" ") | % {$_ + ".exe"})
2019-04-06 19:24:41 -05:00
del ui.h ${{ parameters.osHeader }}
popd
displayName: 'Create Artifacts'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: ${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}