2019-08-20 12:24:33 +00:00
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
paths:
|
|
|
|
exclude:
|
2020-03-15 07:03:13 +00:00
|
|
|
- doc/*
|
|
|
|
- doc/*/*
|
|
|
|
- .github/*
|
|
|
|
- .github/*/*
|
2019-08-20 12:24:33 +00:00
|
|
|
- .appveyor.yml
|
|
|
|
- .travis.yml
|
2020-03-15 07:03:13 +00:00
|
|
|
- CONTRIBUTORS
|
|
|
|
- COPYING
|
|
|
|
- README.md
|
|
|
|
- gen-msvc-project.bat
|
|
|
|
- setup.bat
|
2019-08-20 12:24:33 +00:00
|
|
|
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
paths:
|
|
|
|
exclude:
|
2020-03-15 07:03:13 +00:00
|
|
|
- doc/*
|
|
|
|
- doc/*/*
|
|
|
|
- .github/*
|
|
|
|
- .github/*/*
|
2019-08-20 12:24:33 +00:00
|
|
|
- .appveyor.yml
|
|
|
|
- .travis.yml
|
2020-03-15 07:03:13 +00:00
|
|
|
- CONTRIBUTORS
|
|
|
|
- COPYING
|
|
|
|
- README.md
|
|
|
|
- gen-msvc-project.bat
|
|
|
|
- setup.bat
|
2019-08-20 12:24:33 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job:
|
|
|
|
pool:
|
|
|
|
vmImage: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Release:
|
|
|
|
configuration: Release
|
|
|
|
Debug:
|
|
|
|
configuration: Debug
|
|
|
|
|
|
|
|
steps:
|
2020-03-15 07:03:13 +00:00
|
|
|
- checkout: self
|
|
|
|
submodules: recursive
|
|
|
|
|
2019-08-20 12:24:33 +00:00
|
|
|
- script: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. -G "Visual Studio 16 2019" -A Win32
|
|
|
|
displayName: 'Before build'
|
|
|
|
|
2020-03-15 07:03:13 +00:00
|
|
|
- script: cmake --build . --config %configuration%
|
|
|
|
workingDirectory: build
|
2019-08-20 12:24:33 +00:00
|
|
|
displayName: 'Build'
|
|
|
|
|
2019-08-25 15:40:35 +00:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Copy files to $(Build.ArtifactStagingDirectory)'
|
2019-08-20 12:24:33 +00:00
|
|
|
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
|
2019-08-25 15:40:35 +00:00
|
|
|
inputs:
|
|
|
|
Contents: |
|
|
|
|
COPYING
|
|
|
|
README.md
|
|
|
|
build\bin\$(configuration)\Cxbx.exe
|
|
|
|
build\bin\$(configuration)\glew32.dll
|
|
|
|
build\bin\$(configuration)\subhook.dll
|
2019-09-05 21:10:09 +00:00
|
|
|
build\bin\$(configuration)\SDL2.dll
|
2019-08-25 15:40:35 +00:00
|
|
|
build\bin\$(configuration)\cxbxr-debugger.exe
|
|
|
|
build\bin\$(configuration)\capstone.dll
|
|
|
|
build\bin\$(configuration)\cx_x86.dll
|
|
|
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
flattenFolders: true
|
2019-08-20 12:24:33 +00:00
|
|
|
|
2019-08-25 15:40:35 +00:00
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
2019-08-20 12:24:33 +00:00
|
|
|
artifact: $(configuration)
|
|
|
|
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
|
|
|
|
displayName: Publish artifact(s)
|