11defaults :
2+ install-deps-linux : &install-deps-linux
3+ run :
4+ name : " Installing dependencies"
5+ command : |
6+ sudo apt update && sudo apt install -y xz-utils bzip2 pkg-config
27
38 update-submodules : &update-submodules
49 run :
@@ -39,6 +44,7 @@ defaults:
3944 run :
4045 name : " Build"
4146 working_directory : ~/build
47+ no_output_timeout : 2h
4248 command : |
4349 cmake --build . --target package -- -j $BUILD_PARALLEL_JOBS
4450 mkdir -p ~/package
@@ -51,10 +57,10 @@ defaults:
5157 destination : package
5258
5359 add-package-to-workspace : &add-package-to-workspace
54- persist_to_workspace :
55- root : ~/package
56- paths :
57- - " *"
60+ persist_to_workspace :
61+ root : ~/package
62+ paths :
63+ - " *"
5864
5965 save-deps-cache : &save-deps-cache
6066 cache-save :
@@ -160,6 +166,16 @@ defaults:
160166 testeth --version
161167 testeth -t GeneralStateTests/stEWASMTests -- --testpath tests --vm ~/build/src/libhera.$SO --singlenet Byzantium --evmc engine=wavm $TESTETH_OPTIONS
162168
169+ test-v8 : &test-v8
170+ run :
171+ name : " Test shared Hera (v8)"
172+ command : |
173+ export ASAN_OPTIONS=detect_leaks=0
174+ SO=$([ $(uname) = Darwin ] && echo dylib || echo so)
175+ if [[ $PRELOAD_ASAN ]]; then export LD_PRELOAD=/usr/lib/clang/8/lib/linux/libclang_rt.asan-x86_64.so; fi
176+ testeth --version
177+ testeth -t GeneralStateTests/stEWASMTests -- --testpath tests --vm ~/build/src/libhera.$SO --singlenet Byzantium --evmc engine=v8 $TESTETH_OPTIONS
178+
163179 evmc-test : &evmc-test
164180 run :
165181 name : " Run evmc tests"
@@ -194,13 +210,14 @@ jobs:
194210 BUILD_TYPE : Release
195211 CXX : clang++
196212 CC : clang
197- GENERATOR : Ninja
213+ GENERATOR : Unix Makefiles
198214 BUILD_PARALLEL_JOBS : 4
199- CMAKE_OPTIONS : - DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DEVMC_TEST_TOOLS=ON
215+ CMAKE_OPTIONS : -DCMAKE_VERBOSE_MAKEFILE=ON - DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DHERA_V8 =ON -DEVMC_TEST_TOOLS=ON
200216 docker :
201217 - image : ethereum/cpp-build-env:9
202218 steps :
203219 - checkout
220+ - *install-deps-linux
204221 - *update-submodules
205222 - *environment-info
206223 - *restore-deps-cache
@@ -214,6 +231,7 @@ jobs:
214231 - *test-binaryen
215232 - *test-wabt
216233 - *test-wavm
234+ - *test-v8
217235 - *evmc-test
218236 - *evm2wasm-test
219237
@@ -222,15 +240,16 @@ jobs:
222240 BUILD_TYPE : Release
223241 CXX : clang++
224242 CC : clang
225- GENERATOR : Ninja
243+ GENERATOR : Unix Makefiles
226244 BUILD_PARALLEL_JOBS : 4
227- CMAKE_OPTIONS : - DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DEVMC_TEST_TOOLS=ON -DSANITIZE=address
245+ CMAKE_OPTIONS : -DCMAKE_VERBOSE_MAKEFILE=ON - DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DHERA_V8 =ON -DEVMC_TEST_TOOLS=ON -DSANITIZE=address
228246 # The ASan must the first loaded shared library. Force preloading it with this flag.
229247 PRELOAD_ASAN : true
230248 docker :
231249 - image : ethereum/cpp-build-env:9
232250 steps :
233251 - checkout
252+ - *install-deps-linux
234253 - *update-submodules
235254 - *environment-info
236255 - *restore-deps-cache
@@ -243,6 +262,7 @@ jobs:
243262 - *test-binaryen
244263 - *test-wabt
245264 - *test-wavm
265+ - *test-v8
246266 - *evmc-test
247267 - *evm2wasm-test
248268
@@ -253,12 +273,13 @@ jobs:
253273 - CC : gcc
254274 - GENERATOR : Unix Makefiles
255275 - BUILD_PARALLEL_JOBS : 4
256- - CMAKE_OPTIONS : - DCOVERAGE=ON -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WABT=ON -DHERA_WAVM=ON
276+ - CMAKE_OPTIONS : -DCMAKE_VERBOSE_MAKEFILE=ON - DCOVERAGE=ON -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WABT=ON -DHERA_WAVM=ON -DHERA_V8 =ON
257277 - TESTETH_OPTIONS : --evmc benchmark=true
258278 docker :
259279 - image : ethereum/cpp-build-env:9
260280 steps :
261281 - checkout
282+ - *install-deps-linux
262283 - *update-submodules
263284 - *environment-info
264285 - *restore-deps-cache
@@ -271,6 +292,7 @@ jobs:
271292 - *test-binaryen
272293 - *test-wabt
273294 - *test-wavm
295+ - *test-v8
274296 - *upload-coverage-data
275297
276298 linux-gcc-static-debug :
@@ -280,11 +302,12 @@ jobs:
280302 - CC : gcc
281303 - GENERATOR : Unix Makefiles
282304 - BUILD_PARALLEL_JOBS : 4
283- - CMAKE_OPTIONS : - DBUILD_SHARED_LIBS=OFF -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON
305+ - CMAKE_OPTIONS : -DCMAKE_VERBOSE_MAKEFILE=ON - DBUILD_SHARED_LIBS=OFF -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DHERA_V8 =ON
284306 docker :
285307 - image : ethereum/cpp-build-env:9
286308 steps :
287309 - checkout
310+ - *install-deps-linux
288311 - *update-submodules
289312 - *environment-info
290313 - *restore-deps-cache
@@ -299,7 +322,7 @@ jobs:
299322 - CXX : c++
300323 - GENERATOR : Unix Makefiles
301324 - BUILD_PARALLEL_JOBS : 4
302- - CMAKE_OPTIONS : - DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WABT=ON
325+ - CMAKE_OPTIONS : -DCMAKE_VERBOSE_MAKEFILE=ON - DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WABT=ON -DHERA_V8 =ON
303326 macos :
304327 xcode : " 10.1.0"
305328 steps :
@@ -320,6 +343,7 @@ jobs:
320343 - *fetch-tests
321344 - *test-binaryen
322345 - *test-wabt
346+ - *test-v8
323347
324348 lint :
325349 docker :
0 commit comments