From 90573dc4fe953d6208e800820d039d0d7267e135 Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Thu, 20 Dec 2018 10:06:29 +0100 Subject: [PATCH] [build] Updates vcpkg packages on appveyor to have miniupnpc. --- appveyor.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 8f6982a0..4062025d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,7 +19,6 @@ configuration: init: - '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%' - install: - cinst cmake @@ -34,6 +33,13 @@ before_build: - vcpkg install boost-asio boost-thread boost-system boost-program-options boost-filesystem boost-iostreams boost-random boost-foreach --triplet %PLATFORM%-windows-static - vcpkg install curl --triplet %PLATFORM%-windows-static - vcpkg install openssl --triplet %PLATFORM%-windows-static + # Updates vcpkg packages to have miniupnpc. + # As appveyor previously cache builds for all ports (boost, openssl...), we + # do that now to avoid to rebuild everything. + - cd C:\Tools\vcpkg + - git pull + - .\bootstrap-vcpkg.bat + - cd %APPVEYOR_BUILD_FOLDER% - vcpkg install miniupnpc --triplet %PLATFORM%-windows-static build_script: @@ -45,7 +51,7 @@ after_build: $gitHash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8); $zipFile = "freelan-binary-$env:platform-$gitHash.zip"; Push-AppveyorArtifact "BuildArtifacts.zip" -FileName $zipFile; - + If ($env:Configuration -Match "Release") { scons -C packaging\windows --arch=%INSTALLER_BITS%