nimbus-eth1/hive_integration/nodocker/build_sims.sh

26 lines
832 B
Bash
Raw Normal View History

2022-04-20 13:24:24 +00:00
#!/usr/bin/env bash
set -e
SIM_DIR="hive_integration/nodocker"
USE_SYSTEM_NIM=1
ENV_SCRIPT="vendor/nimbus-build-system/scripts/env.sh"
# nimbus_db_backend:none -> we only use memory db in simulators
2022-07-28 02:19:57 +00:00
NIM_FLAGS="c -d:release -d:disable_libbacktrace -d:nimbus_db_backend:none"
2022-04-20 13:24:24 +00:00
2022-07-24 07:59:32 +00:00
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/engine/engine_sim
2022-04-20 13:24:24 +00:00
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/consensus/consensus_sim
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/graphql/graphql_sim
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/rpc/rpc_sim
2023-07-09 02:16:22 +00:00
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/pyspec/pyspec_sim
2022-04-20 13:24:24 +00:00
2022-07-28 02:19:57 +00:00
${SIM_DIR}/engine/engine_sim
${SIM_DIR}/consensus/consensus_sim
${SIM_DIR}/graphql/graphql_sim
${SIM_DIR}/rpc/rpc_sim
2023-07-09 02:16:22 +00:00
${SIM_DIR}/pyspec/pyspec_sim
2022-07-28 02:19:57 +00:00
2022-04-20 13:24:24 +00:00
echo "## ${1}" > simulators.md
2023-07-09 02:16:22 +00:00
cat engine.md consensus.md graphql.md rpc.md pyspec.md >> simulators.md