forked from jmzkChain/jmzk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
33 lines (31 loc) · 991 Bytes
/
buildspec.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
version: 0.2
env:
parameter-store:
BUILD_JOBS: "docker-build-jobs"
phases:
pre_build:
commands:
- echo Cloning submodules...
- git submodule update --init
build:
commands:
- echo Generating build files...
- mkdir -p build && cd build
- export CCACHE_DIR="${CODEBUILD_SRC_DIR}/build/.ccache"
- export CCACHE_NODIRECT
- cmake ../ -G"Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/local/bin/cc -DCMAKE_CXX_COMPILER=/usr/local/bin/c++ -DSecp256k1_ROOT_DIR=/usr/local -DENABLE_BENCHMARKS=ON -DENABLE_MONGODB_SUPPORT=ON -DENABLE_POSTGRES_SUPPORT=ON -DENABLE_BIND_LIBRARIES=ON
- echo Building...
- ninja all -j $BUILD_JOBS
post_build:
commands:
- echo Runing tests
- ctest --verbose
artifacts:
files:
- 'build/bind/libevt/libevt.so'
- 'build/libraries/chain/libevt_chain_lite.so'
- 'build/libraries/fc/libfc_lite.so'
discard-paths: yes
cache:
paths:
- 'build/.ccache/**/*'