version: 1.0.{build}

pull_requests:
  do_not_increment_build_number: true
image: Visual Studio 2017
cache: c:\tools\vcpkg\installed\

install:
  - vcpkg install sdl2:x64-windows sdl2-mixer:x64-windows sdl2-ttf:x64-windows libsodium:x64-windows

before_build:
  - cmake -G "Visual Studio 15 2017" -A x64 -DNIGHTLY_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake .

build:
  project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
  verbosity: minimal
artifacts:
  - path: Debug\devilutionx.exe
    name: devilutionx.exe
