Skip to content
Snippets Groups Projects
Unverified Commit b8f0e439 authored by bgallois's avatar bgallois
Browse files

add automatic metadata generation at commit

parent d090f8ea
No related branches found
No related tags found
No related merge requests found
Pipeline #34942 passed
[hooks]
pre-commit = "cargo fmt -- --check"
pre-commit = "cargo fmt -- --check ; resources/metadata_hook.sh"
[logging]
verbose = true
This diff is collapsed.
......@@ -46,6 +46,7 @@ substrate-build-script-utils = { git = 'https://github.com/duniter/substrate', b
[dev-dependencies]
rusty-hook = "^0.11.2"
subxt-cli = "^0.33"
# Dependencies for specific targets
[target.'cfg(any(target_arch="x86_64", target_arch="aarch64"))'.dependencies]
......
No preview for this file type
#!/bin/sh
cargo build
cargo run -- --dev&
sleep 10
$HOME/.cargo/bin/subxt metadata -f bytes > resources/metadata.scale
kill $!
git add resources/metadata.scale
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment