-
Notifications
You must be signed in to change notification settings - Fork 20
/
azure-pipelines.yml
68 lines (63 loc) · 2.2 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
# 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
jobs:
- job: MSVC
displayName: MSVC on Windows 2019
pool:
vmImage: windows-2019
steps:
- script: choco install ninja
displayName: Install Ninja
- script: >
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 &&
pwsh ./ci.ps1 -ForceMSVC
displayName: Run tests
- job: MinGW
displayName: MinGW on Windows 2019
pool:
vmImage: windows-2019
steps:
- script: choco install ninja
displayName: Install Ninja
- script: >
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 &&
pwsh ./ci.ps1
displayName: Run tests
- job: LinuxDocker
displayName: Linux w/ Docker
pool:
vmImage: ubuntu-20.04
steps:
- script: |
wget https://github.com/Kitware/CMake/releases/download/v3.16.1/cmake-3.16.1-Linux-x86_64.sh -nv -O /tmp/cmake.sh
sudo sh /tmp/cmake.sh --exclude-subdir --prefix=/usr/local
sudo apt-get install -y python3-venv ninja-build
displayName: Prepare System
- script: pwsh ./ci.ps1 -RunDockerTests
displayName: Run tests
- job: macOS_10
displayName: macOS 10.15
pool:
vmImage: macos-10.15
steps:
- script: |
curl -Ls https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip -o ninja-mac.zip
unzip ninja-mac.zip
sudo cp -v ninja /usr/local/bin/
displayName: Prepare System
- script: env CXX=g++-9 CC=gcc-9 pwsh ./ci.ps1
displayName: Run tests
- job: macOS_11
displayName: macOS 11
pool:
vmImage: macos-11
steps:
- script: |
curl -Ls https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip -o ninja-mac.zip
unzip ninja-mac.zip
sudo cp -v ninja /usr/local/bin/
displayName: Prepare System
- script: env CXX=g++-9 CC=gcc-9 pwsh ./ci.ps1
displayName: Run tests