forked from Cxbx-Reloaded/Cxbx-Reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines.yml
60 lines (52 loc) · 1.49 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
trigger:
branches:
include:
- '*'
paths:
exclude: # Azure Pipelines doesn't support recursive wildcards, see
- '.github/*' # https://developercommunity.visualstudio.com/t/support-wildcards-in-trigger-path-filters-1/366363
- '.github/*/*'
- '*.bat'
- '.appveyor.yml'
- 'doc/*/*'
- 'doc/*'
pr:
branches:
include:
- '*'
paths:
exclude:
- '.github/*'
- '.github/*/*'
- '*.bat'
- '.appveyor.yml'
- 'doc/*/*'
- 'doc/*'
pool:
vmImage: windows-latest
strategy:
matrix:
Release:
configuration: Release
Debug:
configuration: Debug
steps:
- pwsh: |
echo "This CI isn't tested against master, and therefore, isn't guaranteed to work. Pull requests are welcome."
echo "If it doesn't work and you'd rather not fix it, it's recommended to use GitHub Actions CI instead."
displayName: Third-Party CI Warning
- checkout: self
submodules: recursive
- pwsh: cmake -B build -A Win32
displayName: Before build
- pwsh: cmake --build . --config $env:configuration
workingDirectory: build
displayName: Build
- pwsh: cmake --install . --config $env:configuration --prefix $(Build.ArtifactStagingDirectory)
workingDirectory: build
condition: and(succeeded(), eq(variables['configuration'], 'Release'))
displayName: Prepare artifacts
- publish: $(Build.ArtifactStagingDirectory)
artifact: $(configuration)
condition: and(succeeded(), eq(variables['configuration'], 'Release'))
displayName: Publish artifacts