forked from lethal-guitar/RigelEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
54 lines (40 loc) · 1.32 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
50
51
52
53
54
clone_depth: 50
image: Visual Studio 2019
branches:
only:
- master
environment:
BOOST_ROOT: C:\Libraries\boost_1_71_0
install:
- git submodule update --init --recursive
# Download headers and pre-built binaries for SDL2 and SDL2_mixer
- mkdir C:\RigelLibs
- ps: Invoke-WebRequest -Uri https://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip -OutFile C:\RigelLibs\SDL2.zip
- ps: Invoke-WebRequest -Uri https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-VC.zip -OutFile C:\RigelLibs\SDL2_mixer.zip
- 7z x C:\RigelLibs\SDL2.zip -oC:\RigelLibs
- 7z x C:\RigelLibs\SDL2_mixer.zip -oC:\RigelLibs
platform: x64
configuration:
- Debug
- Release
before_build:
- set SDL2DIR=C:\RigelLibs\SDL2-2.0.4
- set SDL2MIXERDIR=C:\RigelLibs\SDL2_mixer-2.0.1
- mkdir build
- cd build
- cmake .. -G "Visual Studio 16 2019"
- cd ..
build:
parallel: true
project: build/RigelEngine.sln
verbosity: minimal
before_test:
- set PATH=%PATH%;%SDL2DIR%\lib\x64;%SDL2MIXERDIR%\lib\x64
test_script:
- cd build
- ctest
after_build:
- 7z a rigel_build.zip C:\projects\rigelengine\build\src\%CONFIGURATION%\RigelEngine.exe %SDL2DIR%\lib\x64\SDL2.dll %SDL2MIXERDIR%\lib\x64\SDL2_mixer.dll
artifacts:
- path: rigel_build.zip
name: RigelBuild