mirror of https://github.com/status-im/evmc.git
AppVeyor CI: Test build of Go bindings
This commit is contained in:
parent
dc4ac2ad4f
commit
c621cc83b8
47
appveyor.yml
47
appveyor.yml
|
@ -14,18 +14,45 @@ environment:
|
||||||
|
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
GENERATOR: "Visual Studio 14 2015 Win64"
|
GENERATOR: "Visual Studio 14 2015 Win64"
|
||||||
|
|
||||||
|
- GO: true
|
||||||
cache:
|
cache:
|
||||||
- C:\.hunter\_Base\Cache -> cmake\HunterConfig.cmake
|
- C:\.hunter\_Base\Cache -> cmake\HunterConfig.cmake
|
||||||
|
|
||||||
before_build: |
|
before_build:
|
||||||
if not exist build mkdir build
|
- ps: >-
|
||||||
cd build
|
if ($env:GENERATOR) {
|
||||||
cmake -G "%GENERATOR%" .. -DBUILD_SHARED_LIBS=ON -DEVMC_EXAMPLES=ON -DEVMC_TESTING=ON -DCMAKE_INSTALL_PREFIX=C:\install
|
if (!(test-path build)) { mkdir build }
|
||||||
|
cd build
|
||||||
|
cmake -G "$env:GENERATOR" .. -DBUILD_SHARED_LIBS=ON -DEVMC_EXAMPLES=ON -DEVMC_TESTING=ON -DCMAKE_INSTALL_PREFIX=C:\install
|
||||||
|
}
|
||||||
|
|
||||||
build_script: |
|
build_script:
|
||||||
cmake --build . --config %CONFIGURATION% --target install
|
- 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"
|
||||||
|
|
||||||
after_build: |
|
mkdir $env:GOPATH
|
||||||
cd C:\projects\evmc\build\test
|
gcc --version
|
||||||
Release\evmc-test.exe
|
go env
|
||||||
C:\install\bin\evmc-vmtester.exe C:\install\bin\evmc-examplevm.dll
|
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
|
||||||
|
|
||||||
|
go build ./bindings/go/evmc
|
||||||
|
}
|
||||||
|
|
||||||
|
after_build:
|
||||||
|
- ps: >-
|
||||||
|
if ($env:GENERATOR) {
|
||||||
|
cd C:\projects\evmc\build\test
|
||||||
|
Release\evmc-test.exe
|
||||||
|
C:\install\bin\evmc-vmtester.exe C:\install\bin\evmc-examplevm.dll
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue