forked from ethereum/evmone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (50 loc) · 1.59 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
53
54
55
56
57
58
59
60
version: "{build}"
image: Visual Studio 2019
branches:
only:
- master
- /release\/.*/
- appveyor
- hunter
- /v\d+\..+/
configuration:
- Release
- Debug
environment:
GITHUB_TOKEN:
secure: OE3TGKRyt/hvk5Gt3DLXvs3Y+F1NLDQAL/bHplDffR+hY2aFg6HrapThKjYo/XX2
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Ninja"
cache:
- C:\.hunter\_Base\Cache -> cmake\Hunter\init.cmake
install:
- cmake --version
- git submodule update --init --recursive
before_build:
- call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd" -arch=amd64
- cmake -S . -B build -DEVMONE_TESTING=ON -Wno-dev -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DHUNTER_CONFIGURATION_TYPES=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=C:\install
build_script:
- cmake --build build --target package
- mkdir package
- mv build/evmone-* package
artifacts:
- path: package/*
name: package
test_script:
- cd build && ctest -j4 --output-on-failure --schedule-random
deploy_script:
- ps: >-
if ($env:appveyor_repo_tag_name -match 'v\d+\..+') {
$env:GO111MODULE = "on"
go get github.com/tcnksm/[email protected] 2>$null
$env:PATH += ";$env:USERPROFILE\go\bin"
cd $env:appveyor_build_folder
$name = "evmone " + ($env:appveyor_repo_tag_name).Remove(0,1)
if (($env:appveyor_repo_tag_name).Contains("-")) {
$prerelease_flag = "-prerelease"
}
echo $name
echo $prerelease_flag
ghr -u ethereum -r evmone -n "$name" $prerelease_flag $env:appveyor_repo_tag_name package/
}