2018-02-14 00:39:22 +00:00
|
|
|
# Documentation is here: https://www.appveyor.com/docs/appveyor-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
|
2018-02-14 00:39:22 +00:00
|
|
|
- Visual Studio 2017
|
|
|
|
|
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
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- cmd: |-
|
|
|
|
git submodule update --init --recursive
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. -G "Visual Studio 15 2017" -A Win32
|
|
|
|
|
2018-02-15 23:36:25 +00:00
|
|
|
build_script:
|
2019-03-11 21:48:39 +00:00
|
|
|
- cmd: cmake --build . --config %CONFIGURATION%
|
2018-02-14 00:39:22 +00:00
|
|
|
|
2018-02-14 22:09:59 +00:00
|
|
|
after_build:
|
2019-03-11 21:48:39 +00:00
|
|
|
- cmd: |-
|
|
|
|
cd bin\%CONFIGURATION%
|
|
|
|
7z u %APPVEYOR_BUILD_FOLDER%\export\%CONFIGURATION%.zip ..\..\..\COPYING ..\..\..\README.md
|
|
|
|
7z u %APPVEYOR_BUILD_FOLDER%\export\%CONFIGURATION%.zip Cxbx.exe glew32.dll subhook.dll CxbxVSBC.dll
|
|
|
|
7z u %APPVEYOR_BUILD_FOLDER%\export\%CONFIGURATION%.zip cxbxr-debugger.exe capstone.dll cs_x86.dll
|
2018-02-14 00:39:22 +00:00
|
|
|
|
2017-02-15 20:37:47 +00:00
|
|
|
artifacts:
|
2018-02-14 00:39:22 +00:00
|
|
|
- path: export/*.zip
|
|
|
|
|