libui/azure-pipelines.yml

36 lines
1.2 KiB
YAML
Raw Normal View History

2019-03-31 22:45:53 -05:00
# 31 march 2019
variables:
2019-04-06 00:06:13 -05:00
releaseExamplesUnix: 'controlgallery cpp-multithread datetime drawtext histogram tester timer'
2019-04-01 09:58:03 -05:00
jobs:
2019-04-04 09:49:31 -05:00
- job: linux_amd64_shared_ninja
displayName: 'Linux amd64 Shared with Ninja'
pool:
vmImage: 'ubuntu-16.04'
workspace:
clean: all
steps:
- template: azure-pipelines/setup-python3.yml
- template: azure-pipelines/install-latest-meson.yml
- script: |
sudo apt-get install libgtk-3-dev ninja-build
displayName: 'Install Dependencies'
- template: azure-pipelines/configure.yml
parameters:
defaultLibrary: shared
backend: ninja
- template: azure-pipelines/build-ninja.yml
2019-04-01 09:58:03 -05:00
- script: |
pushd build/meson-out
cp ../../ui.h ../../ui_unix.h .
tar czf $(Build.ArtifactStagingDirectory)/libui-$(Build.SourceBranchName)-linux-amd64-shared.tgz libui.so.0 ui.h ui_unix.h
tar czf $(Build.ArtifactStagingDirectory)/examples-$(Build.SourceBranchName)-linux-amd64-shared.tgz $(releaseExamplesUnix)
rm ui.h ui_unix.h
popd
displayName: 'Create Artifacts'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: artifactTest