mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-20 22:31:34 +01:00
Merge pull request #3068 from bluca/appveyor_cache
More attempts to speed up Appveyor
This commit is contained in:
commit
6160da5dbe
@ -494,6 +494,7 @@ endif ()
|
||||
if (MSVC)
|
||||
# Parallel make.
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
|
||||
|
||||
# Compile the static lib with debug information included
|
||||
string (REGEX REPLACE "/Z." "/Z7" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||
|
36
appveyor.yml
36
appveyor.yml
@ -4,12 +4,12 @@ shallow_clone: true
|
||||
|
||||
skip_tags: true
|
||||
|
||||
os: Visual Studio 2015
|
||||
os: Visual Studio 2013
|
||||
|
||||
environment:
|
||||
CMAKE_GENERATOR: "Visual Studio 14 2015"
|
||||
MSVCVERSION: "v140"
|
||||
MSVCYEAR: "vs2015"
|
||||
CMAKE_GENERATOR: "Visual Studio 12 2013"
|
||||
MSVCVERSION: "v120"
|
||||
MSVCYEAR: "vs2013"
|
||||
matrix:
|
||||
- platform: Win32
|
||||
configuration: Release
|
||||
@ -20,10 +20,6 @@ environment:
|
||||
POLLER: poll
|
||||
WITH_LIBSODIUM: ON
|
||||
ENABLE_CURVE: ON
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
||||
MSVCVERSION: "v141"
|
||||
MSVCYEAR: "vs2017"
|
||||
- platform: Win32
|
||||
configuration: Debug
|
||||
WITH_LIBSODIUM: ON
|
||||
@ -48,10 +44,10 @@ environment:
|
||||
configuration: Release
|
||||
WITH_LIBSODIUM: ON
|
||||
ENABLE_CURVE: ON
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
||||
CMAKE_GENERATOR: "Visual Studio 12 2013"
|
||||
MSVCVERSION: "v120"
|
||||
MSVCYEAR: "vs2013"
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
CMAKE_GENERATOR: "Visual Studio 14 2015"
|
||||
MSVCVERSION: "v140"
|
||||
MSVCYEAR: "vs2015"
|
||||
- platform: Win32
|
||||
configuration: Release
|
||||
WITH_LIBSODIUM: ON
|
||||
@ -70,16 +66,26 @@ init:
|
||||
- msbuild /version
|
||||
- cmd: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
|
||||
|
||||
cache:
|
||||
- C:\projects\libsodium
|
||||
|
||||
install:
|
||||
- cmd: if "%Platform%"=="x64" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64"
|
||||
- cmd: echo "Generator='%CMAKE_GENERATOR%'"
|
||||
- cmd: echo "Platform='%Platform%'"
|
||||
- cmd: if "%WITH_LIBSODIUM%"=="ON" set LIBSODIUMDIR=C:\projects\libsodium
|
||||
- cmd: if "%WITH_LIBSODIUM%"=="ON" git clone --branch stable --depth 1 --quiet "https://github.com/jedisct1/libsodium.git" %LIBSODIUMDIR%
|
||||
- if "%WITH_LIBSODIUM%"=="ON" (
|
||||
if not exist "%LIBSODIUMDIR%" (
|
||||
git clone --branch stable --depth 1 --quiet "https://github.com/jedisct1/libsodium.git" %LIBSODIUMDIR%
|
||||
) else (
|
||||
cd "%LIBSODIUMDIR%" &&
|
||||
git pull
|
||||
)
|
||||
)
|
||||
- cmd: if "%WITH_LIBSODIUM%"=="ON" msbuild /v:minimal /maxcpucount:%NUMBER_OF_PROCESSORS% /p:Configuration=%Configuration%DLL %LIBSODIUMDIR%\builds\msvc\%MSVCYEAR%\libsodium\libsodium.vcxproj
|
||||
- cmd: if "%WITH_LIBSODIUM%"=="ON" set SODIUM_LIBRARY_DIR="%LIBSODIUMDIR%\bin\%Platform%\%Configuration%\%MSVCVERSION%\dynamic"
|
||||
- cmd: if "%WITH_LIBSODIUM%"=="ON" set SODIUM_INCLUDE_DIR="%LIBSODIUMDIR%\src\libsodium\include"
|
||||
- cmd: if "%WITH_LIBSODIUM%"=="ON" move "%SODIUM_LIBRARY_DIR%\libsodium.lib" "%SODIUM_LIBRARY_DIR%\sodium.lib"
|
||||
- ps: if (${env:WITH_LIBSODIUM} -eq "ON") { Copy-Item "C:\projects\libsodium\bin\${env:Platform}\${env:Configuration}\${env:MSVCVERSION}\dynamic\libsodium.lib" -Destination "C:\projects\libsodium\bin\${env:Platform}\${env:Configuration}\${env:MSVCVERSION}\dynamic\sodium.lib" }
|
||||
|
||||
clone_folder: C:\projects\libzmq
|
||||
|
||||
@ -102,5 +108,5 @@ after_build:
|
||||
|
||||
test_script:
|
||||
- cmd: cd "%LIBZMQ_BUILDDIR%"
|
||||
- cmd: ctest -C "%Configuration%" -V
|
||||
- cmd: ctest -C "%Configuration%" -V -j5
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user