-
Notifications
You must be signed in to change notification settings - Fork 12
/
appveyor.yml
49 lines (41 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
# Specify version format
version: "{build}"
# Operating system (build VM template)
os: Visual Studio 2017
# build platform, i.e. Win32 (instead of x86), x64, Any CPU. This setting is optional.
platform:
- Win32
configuration:
- Release
# clone directory
clone_folder: C:\projects\cosmo-engine
install:
# SDL2
- ps: |
$SDL_VERSION = "2.0.12"
$SDL2DIR = "C:\sdl_root\SDL2-$SDL_VERSION"
if (!(Test-Path -Path $SDL2DIR)) {
Start-FileDownload https://libsdl.org/release/SDL2-devel-$SDL_VERSION-VC.zip
7z x SDL2-devel-$SDL_VERSION-VC.zip -aoa -oC:\sdl_root\
}
$env:SDL2DIR = $SDL2DIR
# SDL2_mixer
- ps: |
$SDL_MIXER_VERSION = "2.0.4"
$SDL2MIXERDIR = "C:\sdl_root\SDL2_mixer-$SDL_MIXER_VERSION"
if (!(Test-Path -Path $SDL2MIXERDIR)) {
Start-FileDownload https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-$SDL_MIXER_VERSION-VC.zip
7z x SDL2_mixer-devel-$SDL_MIXER_VERSION-VC.zip -aoa -oC:\sdl_root\
}
$env:SDL2MIXERDIR = $SDL2MIXERDIR
# scripts to run before build
before_build:
- cmd: cd C:\projects\cosmo-engine
- cmd: md build
- cmd: cd build
- cmd: cmake -G "Visual Studio 15 2017" ..
after_build:
- cmd: 7z a c:\projects\cosmo-engine\cosmo-engine.zip c:\projects\cosmo-engine\build\Release\cosmo_engine.exe c:\projects\cosmo-engine\data\* C:\sdl_root\SDL2_mixer-2.0.4\lib\x86\*.dll C:\sdl_root\SDL2-2.0.12\lib\x86\*.dll
artifacts:
- path: cosmo-engine.zip
name: cosmo_engine