Merge pull request #3 from ethereum/ci

Build on CI
This commit is contained in:
Paweł Bylica 2018-03-28 15:31:44 +02:00 committed by GitHub
commit d4f8c9a5fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 3 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/build
/cmake-build-*
/.idea

11
CMakeLists.txt Normal file
View File

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.5)
project(evmc)
add_library(evmc INTERFACE)
target_include_directories(evmc INTERFACE include)
option(EVMC_BUILD_EXAMPLES "Build EVMC examples" ON)
if(EVMC_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

21
circle.yml Normal file
View File

@ -0,0 +1,21 @@
version: 2
jobs:
build:
docker:
- image: ethereum/cpp-build-env
steps:
- checkout
- run:
name: "Configure"
working_directory: ~/build
command: cmake ../project
- run:
name: "Build"
command: cmake --build ~/build
workflows:
version: 2
evmc:
jobs:
- build

View File

@ -1,8 +1,7 @@
add_library(example-vm STATIC examplevm.c)
target_include_directories(example-vm PRIVATE ../include)
target_link_libraries(example-vm PRIVATE evmc)
target_compile_options(example-vm PRIVATE -Wno-extra)
add_executable(example-capi capi.c)
target_include_directories(example-capi PRIVATE ../include)
target_link_libraries(example-capi PRIVATE example-vm)
target_link_libraries(example-capi PRIVATE evmc example-vm)
target_compile_options(example-capi PRIVATE -Wno-extra)