|
| 1 | +version: 1.72.{build} |
| 2 | + |
| 3 | + |
| 4 | +environment: |
| 5 | + matrix: |
| 6 | + #- PlatformToolset: v141 |
| 7 | + # APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 8 | + |
| 9 | + - PlatformToolset: v142 |
| 10 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 11 | + BUILD_BOOST_VERSION: 1_72_0 |
| 12 | + BUILD_BOOST_VERSION_DOT: 1.72.0 |
| 13 | + BUILD_MSVC_VERSION_DOT: 14.2 |
| 14 | + |
| 15 | +configuration: |
| 16 | + - Release |
| 17 | + #- Debug |
| 18 | + |
| 19 | +platform: |
| 20 | + - Any CPU |
| 21 | + |
| 22 | +install: |
| 23 | + - if "%platform%"=="Any CPU" set archi=amd64 |
| 24 | + - if "%platform%"=="Any CPU" set platform_input=Any CPU |
| 25 | + |
| 26 | + |
| 27 | + - if "%PlatformToolset%"=="v140" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi% |
| 28 | + - if "%PlatformToolset%"=="v141" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% |
| 29 | + - if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% |
| 30 | + |
| 31 | + - cd "%APPVEYOR_BUILD_FOLDER%"\..\.. |
| 32 | + - mkdir boost |
| 33 | + - cd boost |
| 34 | + # build from source, but fails due to runtime limitation as each build takes ~ 40min |
| 35 | + #- appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/source/boost_%BUILD_BOOST_VERSION%.7z |
| 36 | + #- boost.bat |
| 37 | + # complete zip, but fails due to storage limitations on appveyor (bintray download is much faster than sourceforge) |
| 38 | + #- appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z |
| 39 | + #- appveyor DownloadFile https://sourceforge.net/projects/boost/files/boost-binaries/%BUILD_BOOST_VERSION_DOT%/boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z |
| 40 | + #- 7z x -y boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z > nul |
| 41 | + #- rename boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64 boost |
| 42 | + - appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-32.exe |
| 43 | + - appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-64.exe |
| 44 | + - boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-64.exe /SILENT /DIR=C:\boost\boost |
| 45 | + - boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-32.exe /SILENT /DIR=C:\boost\boost |
| 46 | + |
| 47 | + - nuget restore "%APPVEYOR_BUILD_FOLDER%"\builder\builder\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\builder\packages |
| 48 | + - nuget restore "%APPVEYOR_BUILD_FOLDER%"\builder\builderTest\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\builder\packages |
| 49 | + |
| 50 | + |
| 51 | +build_script: |
| 52 | + - cd "%APPVEYOR_BUILD_FOLDER%"\builder |
| 53 | + - msbuild builder.sln /m /verbosity:minimal /t:restore /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
| 54 | + - msbuild builder.sln /m /verbosity:minimal /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
| 55 | + - cd "%APPVEYOR_BUILD_FOLDER%" |
| 56 | + |
| 57 | +after_build: |
| 58 | + - cd "%APPVEYOR_BUILD_FOLDER%"\builder\builder\bin\Release\ |
| 59 | + - call builder.exe |
| 60 | + |
| 61 | +artifacts: |
| 62 | + #- path: installer\build\**\*.* |
| 63 | + # name: releases |
| 64 | + |
| 65 | +deploy: |
| 66 | + provider: GitHub |
| 67 | + auth_token: |
| 68 | + secure: #!TODO! |
| 69 | + artifact: releases |
| 70 | + draft: false |
| 71 | + prerelease: false |
| 72 | + force_update: true |
| 73 | + on: |
| 74 | + appveyor_repo_tag: true |
| 75 | + PlatformToolset: v142 |
| 76 | + configuration: Release |
0 commit comments