2018-02-14 00:39:22 +00:00
|
|
|
# Documentation is here: https://www.appveyor.com/docs/appveyor-yml/
|
|
|
|
|
2019-08-20 09:43:18 +00:00
|
|
|
skip_commits:
|
|
|
|
files:
|
2019-08-20 12:24:33 +00:00
|
|
|
- .azure-pipelines.yml
|
2019-08-20 09:43:18 +00:00
|
|
|
- .travis.yml
|
|
|
|
|
2017-02-15 20:37:47 +00:00
|
|
|
init:
|
|
|
|
- ps: Update-AppveyorBuild -Version "$env:appveyor_repo_commit"
|
2018-02-14 00:39:22 +00:00
|
|
|
|
2018-02-15 23:36:25 +00:00
|
|
|
image:
|
|
|
|
# If this is modified, please also update the build script
|
2019-05-25 17:27:29 +00:00
|
|
|
- Visual Studio 2019
|
2018-02-14 00:39:22 +00:00
|
|
|
|
2017-02-15 20:37:47 +00:00
|
|
|
configuration:
|
2018-02-15 23:36:25 +00:00
|
|
|
# The builds will be run in this order
|
2018-02-14 00:39:22 +00:00
|
|
|
- Release
|
|
|
|
- Debug
|
|
|
|
|
2019-03-11 21:48:39 +00:00
|
|
|
before_build:
|
2019-08-22 17:37:14 +00:00
|
|
|
- cmd: |-
|
2019-03-11 21:48:39 +00:00
|
|
|
git submodule update --init --recursive
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2019-05-25 17:27:29 +00:00
|
|
|
cmake .. -G "Visual Studio 16 2019" -A Win32
|
2019-03-11 21:48:39 +00:00
|
|
|
|
2018-02-15 23:36:25 +00:00
|
|
|
build_script:
|
2019-08-20 09:43:18 +00:00
|
|
|
- cmd: cmake --build . --config %configuration%
|
2018-02-14 00:39:22 +00:00
|
|
|
|
2019-08-20 09:43:18 +00:00
|
|
|
on_success:
|
2019-08-22 17:37:14 +00:00
|
|
|
- ps: |-
|
2019-08-20 09:43:18 +00:00
|
|
|
If ($env:configuration -eq 'Release') {
|
|
|
|
cd "bin\${env:configuration}"
|
2019-08-22 17:37:14 +00:00
|
|
|
7z u "${env:configuration}.zip" ..\..\..\COPYING ..\..\..\README.md
|
2019-09-05 21:10:09 +00:00
|
|
|
7z u "${env:configuration}.zip" Cxbx.exe glew32.dll subhook.dll SDL2.dll
|
2019-08-22 17:37:14 +00:00
|
|
|
7z u "${env:configuration}.zip" cxbxr-debugger.exe capstone.dll cs_x86.dll
|
2019-08-20 09:43:18 +00:00
|
|
|
Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
2019-07-12 21:49:59 +00:00
|
|
|
}
|