This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
63 lines (61 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
jobs:
- job: vs2022_msvc143
pool:
vmImage: "windows-2022"
variables:
configuration: Debug
cmake.preset: x64-windows-debug
steps:
- task: UsePythonVersion@0
displayName: "Setup: Python 3.10"
inputs:
versionSpec: "3.10"
addToPath: true
architecture: "x64"
- powershell: pip install -r requirements.txt
displayName: "Install: Python packages"
- powershell: conan install . --build missing -if cmake
displayName: "Install: Conan packages"
- task: CMake@1
displayName: "CMake: Configure"
inputs:
cmakeArgs: --preset $(cmake.preset) -DCMAKE_INSTALL_PREFIX:PATH="$(Build.ArtifactStagingDirectory)"
workingDirectory: "."
- task: MSBuild@1
inputs:
solution: "build-x64-windows/worknote.sln"
msbuildArchitecture: x64
platform: x64
configuration: $(configuration)
msbuildArguments: "/p:platformtoolset=v143"
- task: CMake@1
displayName: "CMake: Install"
inputs:
cmakeArgs: --build --preset $(cmake.preset) --target install
workingDirectory: "."
# - powershell: ctest --preset $(cmake.preset) --output-on-failure
# displayName: "CTest"
- job: macos11_appleclang
pool:
vmImage: "macos-11"
variables:
cmake.preset: x64-osx-debug
steps:
- powershell: brew install ninja conan python3
displayName: "Setup: Homebrew packages"
- powershell: pip install -r requirements.txt
displayName: "Install: Python packages"
- powershell: conan install . --build missing -if cmake
displayName: "Install: Conan packages"
- task: CMake@1
displayName: "CMake: Configure"
inputs:
cmakeArgs: --preset $(cmake.preset) -DCMAKE_INSTALL_PREFIX:PATH="$(Build.ArtifactStagingDirectory)"
workingDirectory: "."
- task: CMake@1
displayName: "CMake: Build/Install"
inputs:
cmakeArgs: --build --preset $(cmake.preset) --target install
workingDirectory: "."
# - powershell: ctest --preset $(cmake.preset) --output-on-failure
# displayName: "CTest"