Skip to content

Commit

Permalink
Updated Appveyor configuration with vcpkg solution (#26727)
Browse files Browse the repository at this point in the history
- used Visual Studio 2017;
- used vcpkg solution;
- enabled vcpkg cache.
  • Loading branch information
ZhilkinSerg authored and kevingranade committed Nov 18, 2018
1 parent 481f164 commit d675052
Showing 1 changed file with 16 additions and 45 deletions.
61 changes: 16 additions & 45 deletions .appveyor.yml
Expand Up @@ -2,58 +2,29 @@ version: '{branch}.{build}'
os: Windows
clone_folder: C:\Projects\Cataclysm-DDA
shallow_clone: true
matrix:
fast_finish: false
pull_requests:
do_not_increment_build_number: false
image:
# - Visual Studio 2017
- Visual Studio 2015
configuration:
- Release
# - Debug
platform:
- x64
# - x86
environment:
matrix:
- TOOLCHAIN: msvc14
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PROJECT: /msvc-full-features/Cataclysm-vcpkg.sln
COMPILER: msvc2017
TOOLCHAIN: msvc15
PLATFORM: x64
CONFIGURATION: Release
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
fast_finish: false
cache:
- 'c:\tools\vcpkg\installed'
install:
# Set TEMP folder
- cmd: set TEMP_FOLDER=C:\Temp
- cmd: mkdir "%TEMP_FOLDER%"

# Create WINDEPEND folder
- cmd: mkdir "%APPVEYOR_BUILD_FOLDER%\WinDepend"

# Add WINDEPEND folder to PATH (for LUA binary)
- cmd: set PATH=%APPVEYOR_BUILD_FOLDER%\WinDepend;%PATH%

# Download WINDEPEND archive
- ps : |
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls11, Tls12'
Start-FileDownload "http://dev.narc.ro/cataclysm/WinDepend-MSVC.7z" -FileName "$($env:TEMP_FOLDER)\WinDepend-MSVC.7z"
# Unpack WINDEPEND archive to WINDEPEND folder
- cmd: 7z x -y "%TEMP_FOLDER%\WinDepend-MSVC.7z" -o"%APPVEYOR_BUILD_FOLDER%"

# Download LUA archive
- ps : |
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls11, Tls12'
Start-FileDownload "https://www.dropbox.com/s/49vexob83bi5nrf/lua.zip?dl=1" -FileName "$($env:TEMP_FOLDER)\lua.zip"
# Unpack LUA archive to WINDEPEND folder
- cmd: 7z x -y "%TEMP_FOLDER%\lua.zip" -o"%APPVEYOR_BUILD_FOLDER%\WinDepend"

# Install dependency packages
- cmd: vcpkg --triplet %PLATFORM%-windows install sdl2 sdl2-image sdl2-mixer sdl2-ttf gettext lua
# Add LUA binary folder to PATH
- cmd: set PATH=c:\tools\vcpkg\installed\%PLATFORM%-windows\tools\lua;%PATH%
# Report LUA binary version
- cmd: lua.exe -v

# Report debug info
#- cmd: echo %APPVEYOR_BUILD_FOLDER%
#- cmd: path
#- cmd: dir "%APPVEYOR_BUILD_FOLDER%\src\lua"

build:
project: /msvc-full-features/Cataclysm.sln
parallel: true
project: /msvc-full-features/Cataclysm-vcpkg.sln
verbosity: minimal

0 comments on commit d675052

Please sign in to comment.