evmc/appveyor.yml

59 lines
1.4 KiB
YAML
Raw Normal View History

2018-06-25 11:29:12 +00:00
version: "{build}"
branches:
only:
- master
2018-08-13 15:42:26 +00:00
- /release\/.*/
2018-06-25 11:29:12 +00:00
- appveyor
- hunter
configuration:
- Release
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017 Win64"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: "Visual Studio 14 2015 Win64"
2018-08-22 16:03:55 +00:00
- GO: true
cache:
2019-05-06 09:23:12 +00:00
- C:\.hunter\_Base\Cache -> cmake\Hunter\init.cmake
2018-06-25 11:29:12 +00:00
2018-08-22 16:03:55 +00:00
before_build:
- ps: >-
if ($env:GENERATOR) {
if (!(test-path build)) { mkdir build }
cd build
2019-05-05 21:12:00 +00:00
cmake -Wno-dev -G "$env:GENERATOR" .. -DTOOLCHAIN=cxx17-pic -DEVMC_TESTING=ON -DCMAKE_INSTALL_PREFIX=C:\install
2018-08-22 16:03:55 +00:00
}
build_script:
- ps: >-
if ($env:GENERATOR) {
cmake --build . --config $env:CONFIGURATION --target install
}
elseif ($env:GO) {
$env:PATH = "C:\msys64\mingw64\bin;$env:PATH"
$env:GOPATH = "C:\Users\appveyor\go"
mkdir $env:GOPATH
gcc --version
go env
go get github.com/ethereum/go-ethereum/common
copy include/evmc/evmc.h bindings/go/evmc
copy include/evmc/helpers.h bindings/go/evmc
copy include/evmc/loader.h bindings/go/evmc
copy lib/loader/loader.c bindings/go/evmc
2018-06-25 11:29:12 +00:00
2018-08-22 16:03:55 +00:00
go build ./bindings/go/evmc
2019-03-12 12:53:07 +00:00
go generate ./bindings/go/evmc
2019-03-12 13:30:04 +00:00
go test -v ./bindings/go/evmc
2018-08-22 16:03:55 +00:00
}
2018-06-25 11:29:12 +00:00
2018-08-22 16:03:55 +00:00
after_build:
- ps: >-
if ($env:GENERATOR) {
ctest -C $env:CONFIGURATION -j4 --schedule-random --output-on-failure
2018-08-22 16:03:55 +00:00
}