potator/appveyor.yml
2019-11-20 17:23:28 +03:00

32 lines
934 B
YAML

version: 1.0.{build}
image: Visual Studio 2019
clone_folder: c:\projects\potator
environment:
SDL_VERSION: 2.0.10
install:
- ps: >-
New-Item c:\projects\sdl -type directory
New-Item c:\projects\potator\artifacts -type directory
cd c:\projects\sdl
Start-FileDownload "https://www.libsdl.org/release/SDL2-devel-${env:SDL_VERSION}-VC.zip"
7z x SDL2-devel-${env:SDL_VERSION}-VC.zip
Copy-Item SDL2-${env:SDL_VERSION}\lib\x86\SDL2.dll c:\projects\potator\artifacts\
cd c:\projects\potator\platform\SDL2\
Copy-Item sdl2-config.cmake c:\projects\sdl\SDL2-${env:SDL_VERSION}
cmake -DSDL2_DIR=c:\projects\sdl\SDL2-${env:SDL_VERSION} -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_GENERATOR_PLATFORM=Win32 ./
build:
verbosity: minimal
after_build:
- ps: Copy-Item C:\projects\potator\platform\SDL2\Release\PotatorSDL2.exe C:\projects\potator\artifacts\
artifacts:
- path: artifacts
name: artifacts