forked from asmotor/asmotor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (42 loc) · 1.19 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
tags:
include:
- release/*
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.13'
windows:
imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
steps:
- script: |
git submodule update --init
displayName: 'Update submodules'
- task: CMake@1
inputs:
cmakeArgs: '-DCMAKE_INSTALL_PREFIX=$(Build.BinariesDirectory) -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR_PLATFORM=x64 -S ..'
displayName: 'Generate makefiles'
- task: CMake@1
inputs:
cmakeArgs: '--build . --config Release --target install'
displayName: 'Build'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)/bin'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Agent.OS).zip'
replaceExistingArchive: true
includeRootFolder: false
displayName: 'Archive files'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: binaries
displayName: 'Publish artifact'