|
| 1 | +version: 1.79.{build} |
| 2 | + |
| 3 | + |
| 4 | +environment: |
| 5 | + matrix: |
| 6 | + |
| 7 | + - PlatformToolset: v143 |
| 8 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 |
| 9 | + BUILD_BOOST_VERSION: 1_80_0 |
| 10 | + BUILD_BOOST_VERSION_DOT: 1.80.0 |
| 11 | + BUILD_MSVC_VERSION_DOT: 14.2 |
| 12 | + |
| 13 | +configuration: |
| 14 | + - Release |
| 15 | + #- Debug |
| 16 | + |
| 17 | +platform: |
| 18 | + - Any CPU |
| 19 | + |
| 20 | +install: |
| 21 | + - if "%platform%"=="Any CPU" set archi=amd64 |
| 22 | + - if "%platform%"=="Any CPU" set platform_input=Any CPU |
| 23 | + |
| 24 | + |
| 25 | + - if "%PlatformToolset%"=="v140" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi% |
| 26 | + - if "%PlatformToolset%"=="v141" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% |
| 27 | + - if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% |
| 28 | + - if "%PlatformToolset%"=="v143" call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% |
| 29 | + |
| 30 | + - cd "%APPVEYOR_BUILD_FOLDER%"\..\.. |
| 31 | + - mkdir boostorg |
| 32 | + - cd boostorg |
| 33 | + # build from source, but fails due to runtime limitation as each build takes ~ 40min |
| 34 | + #- appveyor DownloadFile https://boostorg.jfrog.io/artifactory/main/release/%BUILD_BOOST_VERSION_DOT%/source/boost_%BUILD_BOOST_VERSION%.7z |
| 35 | + #- boost.bat |
| 36 | + |
| 37 | + # Free disk space for boost zip package |
| 38 | + - rmdir /q /s C:\Qt |
| 39 | + - rmdir /q /s C:\Python26 |
| 40 | + - rmdir /q /s C:\Python26-x64 |
| 41 | + - rmdir /q /s C:\Python27 |
| 42 | + - rmdir /q /s C:\Python27-x64 |
| 43 | + - rmdir /q /s C:\Python33 |
| 44 | + - rmdir /q /s C:\Python33-x64 |
| 45 | + - rmdir /q /s C:\Python34 |
| 46 | + - rmdir /q /s C:\Python34-x64 |
| 47 | + - rmdir /q /s C:\Python35 |
| 48 | + - rmdir /q /s C:\Python35-x64 |
| 49 | + - rmdir /q /s C:\Python36 |
| 50 | + - rmdir /q /s C:\Python36-x64 |
| 51 | + - rmdir /q /s C:\Python37 |
| 52 | + - rmdir /q /s C:\Python37-x64 |
| 53 | + - rmdir /q /s C:\Python38 |
| 54 | + - rmdir /q /s C:\Python38-x64 |
| 55 | + - rmdir /q /s C:\Python39 |
| 56 | + - rmdir /q /s C:\Python39-x64 |
| 57 | + - rmdir /q /s C:\Python310 |
| 58 | + - rmdir /q /s C:\Python310-x64 |
| 59 | + |
| 60 | + # complete zip, but fails due to storage limitations on appveyor (artifactory download is much faster than sourceforge) |
| 61 | + - appveyor DownloadFile https://boostorg.jfrog.io/artifactory/main/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z |
| 62 | + #- appveyor DownloadFile https://sourceforge.net/projects/boost/files/boost-binaries/%BUILD_BOOST_VERSION_DOT%/boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z |
| 63 | + - 7z x -y boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z > nul |
| 64 | + - del /q boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z |
| 65 | + - rename boost_%BUILD_BOOST_VERSION% boost |
| 66 | + |
| 67 | + |
| 68 | + #- appveyor DownloadFile https://boostorg.jfrog.io/artifactory/main/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-32.exe |
| 69 | + #- appveyor DownloadFile https://boostorg.jfrog.io/artifactory/main/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-64.exe |
| 70 | + #- boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-64.exe /SILENT /DIR=C:\boostorg\boost |
| 71 | + #- boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-32.exe /SILENT /DIR=C:\boostorg\boost |
| 72 | + |
| 73 | + - nuget restore "%APPVEYOR_BUILD_FOLDER%"\builder\builder\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\builder\packages |
| 74 | + - nuget restore "%APPVEYOR_BUILD_FOLDER%"\builder\builderTest\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\builder\packages |
| 75 | + |
| 76 | + |
| 77 | +build_script: |
| 78 | + - cd "%APPVEYOR_BUILD_FOLDER%"\builder |
| 79 | + - msbuild builder.sln /m /verbosity:minimal /t:restore /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
| 80 | + - msbuild builder.sln /m /verbosity:minimal /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
| 81 | + - cd "%APPVEYOR_BUILD_FOLDER%" |
| 82 | + |
| 83 | +after_build: |
| 84 | + - cd "%APPVEYOR_BUILD_FOLDER%"\builder\builder\bin\Release\ |
| 85 | + - call builder.exe |
| 86 | + |
| 87 | +artifacts: |
| 88 | + #- path: installer\build\**\*.* |
| 89 | + # name: releases |
| 90 | + |
| 91 | +deploy: |
| 92 | + provider: GitHub |
| 93 | + auth_token: |
| 94 | + secure: #!TODO! |
| 95 | + artifact: releases |
| 96 | + draft: false |
| 97 | + prerelease: false |
| 98 | + force_update: true |
| 99 | + on: |
| 100 | + appveyor_repo_tag: true |
| 101 | + PlatformToolset: v143 |
| 102 | + configuration: Release |
0 commit comments