mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-24 14:47:59 +00:00
Build Polkadot Nodes in CI - fixes artifact generation (#1410)
* new workflow and adjust node builder * fix examples by fixing artifacts script * use-nodes instead of use-substrate * update yamls * build polkadot * remove the on-push trigger again, now that polkadot built in the CI * add default implementation again
This commit is contained in:
@@ -10,7 +10,7 @@ use substrate_runner::SubstrateNode;
|
||||
/// Run with `cargo run --bin artifacts` from the root of the repository.
|
||||
fn main() {
|
||||
let mut node_builder = SubstrateNode::builder();
|
||||
node_builder.binary_paths(["substrate-node", "substrate"]);
|
||||
node_builder.polkadot();
|
||||
|
||||
// Spawn the node and retrieve a ws URL to it:
|
||||
let proc = node_builder
|
||||
@@ -37,13 +37,13 @@ fn main() {
|
||||
|
||||
// Generate a metadata file that only contains a few pallets that we need for our examples.
|
||||
run_cmd(
|
||||
r#"cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets "Balances,Staking,System,Multisig,Timestamp,ParaInherent""#,
|
||||
"cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets Balances,Staking,System,Multisig,Timestamp,ParaInherent",
|
||||
Some("artifacts/polkadot_metadata_small.scale"),
|
||||
);
|
||||
|
||||
// Generate a metadata file that contains no pallets
|
||||
run_cmd(
|
||||
r#"cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets """#,
|
||||
"cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets \"\"",
|
||||
Some("artifacts/polkadot_metadata_tiny.scale"),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user