forked from Cxbx-Reloaded/Cxbx-Reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines.yml
89 lines (81 loc) · 2.15 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
trigger:
branches:
include:
- '*'
paths:
exclude:
- doc/*
- doc/*/*
- .github/*
- .github/*/*
- .appveyor.yml
- .travis.yml
- CONTRIBUTORS
- COPYING
- README.md
- gen-msvc-project.bat
- setup.bat
pr:
branches:
include:
- '*'
paths:
exclude:
- doc/*
- doc/*/*
- .github/*
- .github/*/*
- .appveyor.yml
- .travis.yml
- CONTRIBUTORS
- COPYING
- README.md
- gen-msvc-project.bat
- setup.bat
jobs:
- job:
pool:
vmImage: windows-latest
strategy:
matrix:
Release:
configuration: Release
Debug:
configuration: Debug
steps:
- script: |
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
- script: |
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A Win32
displayName: 'Before build'
- script: cmake --build . --config %configuration%
workingDirectory: build
displayName: 'Build'
- task: CopyFiles@2
displayName: 'Copy files to $(Build.ArtifactStagingDirectory)'
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
inputs:
Contents: |
COPYING
README.md
build\bin\$(configuration)\cxbx.exe
build\bin\$(configuration)\cxbxr-ldr.exe
build\bin\$(configuration)\cxbxr-emu.dll
build\bin\$(configuration)\glew32.dll
build\bin\$(configuration)\subhook.dll
build\bin\$(configuration)\SDL2.dll
build\bin\$(configuration)\cxbxr-debugger.exe
build\bin\$(configuration)\capstone.dll
build\bin\$(configuration)\cx_x86.dll
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- publish: $(Build.ArtifactStagingDirectory)
artifact: $(configuration)
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
displayName: Publish artifact(s)