-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
75 lines (62 loc) · 1.72 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
66
67
68
69
70
71
72
73
trigger:
- master
- feature/*
jobs:
- job: Build_Windows_17
pool:
vmImage: 'vs2017-win2016'
steps:
- powershell: |
vcpkg integrate install
vcpkg install cxxopts catch2
displayName: 'Install dependencies'
- powershell: |
mkdir __build__
cd __build__
cmake -DCMAKE_TOOLCHAIN_FILE="$ENV:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ..
cmake --build .
displayName: 'Build app'
- job: Build_Ubuntu
variables:
VCPKG_PATH: /usr/local/share/vcpkg
pool:
vmImage: 'Ubuntu-16.04'
strategy:
matrix:
GCC-8:
COMPILER: g++-8
# Not yet available
# GCC-9:
# GCC_VERSION: g++-9
steps:
- script: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update -y
sudo apt install $(COMPILER) ninja-build -y
displayName: 'Install compiler'
- script: |
echo "vcpkg installed at: $(vcpkg integrate install)"
vcpkg install cxxopts catch2
displayName: 'Install dependencies'
- script: |
export CXX=$(COMPILER)
mkdir __build__ && cd __build__
cmake -DCMAKE_TOOLCHAIN_FILE=$(VCPKG_PATH)/scripts/buildsystems/vcpkg.cmake -G"Ninja" ..
cmake --build .
displayName: 'Build app'
# currently missing vcpkg
#- job: Build_Windows_19
# pool:
# vmImage: 'windows-2019'
# steps:
# - powershell: |
# Install-Vcpkg.ps1
# vcpkg.exe integrate install
# vcpkg.exe install cxxopts catch2
# displayName: 'Install dependencies'
# - script: |
# export CXX=$(COMPILER)
# mkdir __build__ && cd __build__
# cmake -DCMAKE_TOOLCHAIN_FILE=$(VCPKG_PATH)/scripts/buildsystems/vcpkg.cmake -G"Ninja" ..
# cmake --build .
# displayName: 'Build app'