Skip to content

Commit

Permalink
fix: update CI commands after node binary and dir changes (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
igamigo authored Apr 25, 2024
1 parent dfec8b5 commit 4bf6ad3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[env]
FEATURES_INTEGRATION_TESTING="integration"
NODE_FEATURES_TESTING="testing"
NODE_BINARY="miden-node"

[tasks.format]
toolchain = "nightly"
Expand Down Expand Up @@ -49,17 +48,18 @@ args = ["-rf", "miden-node"]
description = "Clone or update miden-node repository and clean up files"
script_runner = "bash"
script = [
'if [ -d miden-node ]; then cd miden-node && git pull && cargo update; else git clone https://github.com/0xPolygonMiden/miden-node.git && cd miden-node && cargo update; fi',
'if [ -d miden-node ]; then cd miden-node && git checkout main; else git clone https://github.com/0xPolygonMiden/miden-node.git && cd miden-node && git checkout main; fi',
'rm -rf miden-store.sqlite3 miden-store.sqlite3-wal miden-store.sqlite3-shm',
'cargo run --bin $NODE_BINARY --features $NODE_FEATURES_TESTING -- make-genesis --inputs-path node/genesis.toml --force'
'cd bin/node',
'cargo run --features $NODE_FEATURES_TESTING -- make-genesis --force'
]

[tasks.start-node]
description = "Start the miden-node"
dependencies = ["node"]
script_runner = "bash"
cwd = "./miden-node/"
script = "cargo run --bin ${NODE_BINARY} --features ${NODE_FEATURES_TESTING} -- start --config node/miden-node.toml"
cwd = "./miden-node/bin/node"
script = "cargo run --features ${NODE_FEATURES_TESTING} -- start node"

[tasks.docs-deps]
description = "Install documentation dependencies"
Expand Down

0 comments on commit 4bf6ad3

Please sign in to comment.