-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
35 lines (33 loc) · 1.14 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
configuration:
- Release
image:
- Visual Studio 2019
environment:
matrix:
- platform: Win32
for:
-
matrix:
only:
- platform: Win32
image: Visual Studio 2019
environment:
VCPKG_TRIPLET: x86-windows-static
CMAKE_GENERATOR: Visual Studio 16 2019
CMAKE_GENERATOR_PLATFORM: Win32
install:
- cmd: vcpkg install sdl2:%VCPKG_TRIPLET%
before_build:
- cmd: git submodule update --init --recursive
build_script:
- cmd: mkdir CMakeBuild
- cmd: cd CMakeBuild
- cmd: cmake -G"%CMAKE_GENERATOR%" -A"%CMAKE_GENERATOR_PLATFORM%" -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET="%VCPKG_TRIPLET%" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- cmd: cd ..
- cmd: cmake --build CMakeBuild --config Release -j
- cmd: mkdir "%APPVEYOR_PROJECT_NAME%-%platform%"
- cmd: cp CMakeBuild/Release/*.exe "%APPVEYOR_PROJECT_NAME%-%platform%/"
- cmd: 7z a "%APPVEYOR_PROJECT_NAME%-%platform%.zip" "%APPVEYOR_PROJECT_NAME%-%platform%/"
artifacts:
- path: $(APPVEYOR_PROJECT_NAME)-$(platform).zip
name: 'Windows 32-bit'