forked from xenium-project/xenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
52 lines (43 loc) · 1.92 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
image:
- Visual Studio 2019
cache:
- c:\users\appveyor\clcache
- c:\local\boost_1_69_0
environment:
BOOST_ROOT: C:\local\boost_1_69_0
BOOST_LIBRARYDIR: C:\local\boost_1_69_0\lib64-msvc-14
init:
- set PATH=c:\Python37;c:\Python37\Scripts;%PATH%
- pip install clcache
before_build:
- clcache -s
install:
- ps: Write-Host "Checking for Boost 1.69.0 x64...";$boostdir = Test-Path $Env:BOOST_ROOT;If ($boostdir -eq $False) {Write-Host "Downloading Boost 1.69.0 x64...";$exePath = "$Env:TEMP\boost_1_69_0-msvc-14.1-64.exe";(New-Object Net.WebClient).DownloadFile('https://bintray.com/boostorg/release/download_file?file_path=1.69.0%2Fbinaries%2Fboost_1_69_0-msvc-14.1-64.exe', $exePath);Write-Host "Installing Boost 1.69.0 x64...";cmd /c start /wait "$exePath" /verysilent;del $exePath};Write-Host "Boost 1.69.0 x64 installed!" -ForegroundColor Green
build_script:
- md build
- cd build
- cmake -G "Visual Studio 16 2019" -A x64 .. -DARCH=default -DOPENSSL_ROOT_DIR=C:\OpenSSL-v111-Win64
- MSBuild Xenium.sln /p:CLToolExe=clcache.exe /p:CLToolPath=c:\Python37\Scripts\ /p:Configuration=Release /m
- src\Release\XeniumCryptotest.exe
after_build:
- clcache -s
- if not defined APPVEYOR_REPO_TAG_NAME (set APPVEYOR_REPO_TAG_NAME=%APPVEYOR_REPO_COMMIT%)
- cd src\Release
- mkdir Xenium-%APPVEYOR_REPO_TAG_NAME%
- copy *.exe Xenium-%APPVEYOR_REPO_TAG_NAME%
- copy ..\..\..\LICENSE Xenium-%APPVEYOR_REPO_TAG_NAME%
- 7z a Xenium-%APPVEYOR_REPO_TAG_NAME%-windows.zip Xenium-%APPVEYOR_REPO_TAG_NAME%
- copy Xenium-%APPVEYOR_REPO_TAG_NAME%-windows.zip ..\..\..\
artifacts:
- path: Xenium-$(APPVEYOR_REPO_TAG_NAME)-windows.zip
name: XeniumRelease
deploy:
- provider: GitHub
auth_token:
secure: 0uekag1omrW5tY0pMftRq2qcZXruBi68Y+m7qi5GhAIQ0420DslI8qPswrcc8PE4
artifact: XeniumRelease
draft: false
prerelease: false
on:
appveyor_repo_name: xenium-project/xenium
appveyor_repo_tag: true