forked from Cxbx-Reloaded/Cxbx-Reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
49 lines (42 loc) · 1.48 KB
/
.appveyor.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
# 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/*/*
- .azure-pipelines.yml
- .travis.yml
- CONTRIBUTORS
- COPYING
- README.md
- gen-msvc-project.bat
- setup.bat
init:
- ps: |-
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."
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
- Debug
before_build:
- |-
git submodule update --init --recursive
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A Win32
build_script:
- cmake --build . --config %configuration%
on_success:
- ps: |-
If ($env:configuration -eq 'Release') {
cd bin\$env:configuration
7z u "$env:configuration.zip" ..\..\..\COPYING ..\..\..\README.md
7z u "$env:configuration.zip" cxbx.exe cxbxr-ldr.exe cxbxr-emu.dll glew32.dll subhook.dll SDL2.dll
7z u "$env:configuration.zip" cxbxr-debugger.exe capstone.dll cs_x86.dll
Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}