mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 15:21:08 +00:00
Fix node-template-release and make cargo doc faster (#3019)
This commit is contained in:
@@ -242,7 +242,7 @@ build-rust-doc-release:
|
||||
<<: *build-only
|
||||
script:
|
||||
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
|
||||
- time cargo +nightly doc --release --all --verbose
|
||||
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly doc --release --all --verbose
|
||||
- cp -R ./target/doc ./crate-docs
|
||||
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
|
||||
- sccache -s
|
||||
|
||||
@@ -136,9 +136,6 @@ fn write_cargo_toml(path: &Path, cargo_toml: CargoToml) {
|
||||
|
||||
/// Build and test the generated node-template
|
||||
fn build_and_test(path: &Path, cargo_tomls: &[PathBuf]) {
|
||||
// Build wasm
|
||||
assert!(Command::new(path.join("./scripts/build.sh")).current_dir(path).status().expect("Compiles wasm").success());
|
||||
|
||||
// Build node
|
||||
assert!(Command::new("cargo").args(&["build", "--all"]).current_dir(path).status().expect("Compiles node").success());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user