-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
65 lines (58 loc) · 2.1 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: $(TeamProject)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
pr:
- master
stages:
- stage: build
displayName: Build
jobs:
- job: Windows
displayName: Windows
pool:
vmImage: 'windows-latest'
variables:
ZLIB_ROOT: '$(Build.SourcesDirectory)\native\src\thirdparty\zlib\zlib-src'
steps:
- template: templates/windows-build.yml
parameters:
nuget_version: 4.9.2
- job: Linux
displayName: Linux
dependsOn: []
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-7 g++-7
gcc-7 --version
g++-7 --version
which gcc-7
which g++-7
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-7 50
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-7 50
displayName: 'Install GCC 7'
- template: templates/nix-build.yml
parameters:
artifactName: linux-drop
ext: a
- job: macOs
displayName: Mac OS X
dependsOn: []
pool:
vmImage: 'macOS-latest'
steps:
- template: templates/nix-build.yml
parameters:
dir: .
artifactName: macos-drop
ext: so
- job: Nuget
displayName: Pack into Nuget
dependsOn: [Windows, Linux, macOs]
pool:
vmImage: 'windows-latest'
steps:
- template: templates/pack.yml
parameters:
nuget_version: 4.9.2