2019-03-31 22:45:53 -05:00
|
|
|
# 31 march 2019
|
2019-03-31 22:38:39 -05:00
|
|
|
|
2019-04-05 23:46:18 -05:00
|
|
|
variables:
|
2019-04-06 00:06:13 -05:00
|
|
|
releaseExamplesUnix: 'controlgallery cpp-multithread datetime drawtext histogram tester timer'
|
2019-04-05 23:46:18 -05:00
|
|
|
|
2019-04-01 09:58:03 -05:00
|
|
|
jobs:
|
2019-04-04 09:49:31 -05:00
|
|
|
- job: linux_amd64_shared_ninja
|
2019-04-04 19:27:16 -05:00
|
|
|
displayName: 'Linux amd64 Shared with Ninja'
|
2019-04-04 09:46:59 -05:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-16.04'
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
steps:
|
2019-04-05 00:29:43 -05:00
|
|
|
- template: azure-pipelines/setup-python3.yml
|
2019-04-04 10:02:59 -05:00
|
|
|
- template: azure-pipelines/install-latest-meson.yml
|
2019-04-04 09:46:59 -05:00
|
|
|
- script: |
|
|
|
|
sudo apt-get install libgtk-3-dev ninja-build
|
2019-04-04 10:02:59 -05:00
|
|
|
displayName: 'Install Dependencies'
|
2019-04-05 00:42:23 -05:00
|
|
|
- template: azure-pipelines/configure.yml
|
|
|
|
parameters:
|
|
|
|
defaultLibrary: shared
|
|
|
|
backend: ninja
|
2019-04-05 00:29:43 -05:00
|
|
|
- template: azure-pipelines/build-ninja.yml
|
2019-04-01 09:58:03 -05:00
|
|
|
- script: |
|
2019-04-05 21:20:48 -05:00
|
|
|
pushd build/meson-out
|
|
|
|
cp ../../ui.h ../../ui_unix.h .
|
2019-04-06 15:16:45 -05:00
|
|
|
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)
|
2019-04-05 21:20:48 -05:00
|
|
|
rm ui.h ui_unix.h
|
|
|
|
popd
|
|
|
|
displayName: 'Create Artifacts'
|
2019-04-06 15:16:45 -05:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathToPublish: $(Build.ArtifactStagingDirectory)
|
|
|
|
artifactName: artifactTest
|