Cxbx-Reloaded/.appveyor.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

# Documentation is here: https://www.appveyor.com/docs/appveyor-yml/
# You can validate ymls here: https://ci.appveyor.com/tools/validate-yaml
skip_commits:
files:
- doc/*
- doc/*/*
- .github/*
- .github/*/*
2019-08-20 12:24:33 +00:00
- .azure-pipelines.yml
- .travis.yml
- CONTRIBUTORS
- COPYING
- README.md
- gen-msvc-project.bat
- setup.bat
2017-02-15 20:37:47 +00:00
init:
- ps: Update-AppveyorBuild -Version "$env:appveyor_repo_commit"
image: # If this is modified, please also update the build script
- Visual Studio 2019
configuration: # The builds will be run in this order
- Release
2020-04-10 22:03:40 +00:00
- Debug
2019-03-11 21:48:39 +00:00
before_build:
- |-
2019-03-11 21:48:39 +00:00
git submodule update --init --recursive
mkdir build
cd build
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:
- cmake --build . --config %configuration%
on_success:
- ps: |-
2020-04-10 22:03:40 +00:00
If ($env:configuration -eq 'Release') {
cd bin\$env:configuration
7z u "$env:configuration.zip" ..\..\..\COPYING ..\..\..\README.md
2019-10-16 12:20:14 +00:00
7z u "$env:configuration.zip" cxbx.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll
2020-04-10 22:03:40 +00:00
7z u "$env:configuration.zip" cxbxr-debugger.exe capstone.dll cs_x86.dll
Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}