36 lines
1.2 KiB
Bash
Raw Normal View History

2022-04-20 20:24:24 +07:00
#!/usr/bin/env bash
2023-11-01 10:32:09 +07:00
# Nimbus
# Copyright (c) 2021-2024 Status Research & Development GmbH
2023-11-01 10:32:09 +07:00
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
2022-04-20 20:24:24 +07:00
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
NIM_FLAGS="c -d:release"
2022-04-20 20:24:24 +07:00
2022-07-24 14:59:32 +07:00
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/engine/engine_sim
2022-04-20 20:24:24 +07: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 09:16:22 +07:00
${ENV_SCRIPT} nim ${NIM_FLAGS} ${SIM_DIR}/pyspec/pyspec_sim
2022-04-20 20:24:24 +07:00
2022-07-28 09:19:57 +07:00
${SIM_DIR}/engine/engine_sim
${SIM_DIR}/consensus/consensus_sim
${SIM_DIR}/graphql/graphql_sim
${SIM_DIR}/rpc/rpc_sim
2023-07-09 09:16:22 +07:00
${SIM_DIR}/pyspec/pyspec_sim
2022-07-28 09:19:57 +07:00
2022-04-20 20:24:24 +07:00
echo "## ${1}" > simulators.md
2023-07-09 09:16:22 +07:00
cat engine.md consensus.md graphql.md rpc.md pyspec.md >> simulators.md