Skip to content

Commit

Permalink
Merge pull request #1451 from hermit-os/ci-doc
Browse files Browse the repository at this point in the history
fix(xtask): build docs for each arch separately
  • Loading branch information
mkroening authored Nov 12, 2024
2 parents 9807cf4 + 240a10a commit dca9fe1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions xtask/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ impl Doc {
pub fn run(self) -> Result<()> {
let sh = crate::sh()?;

let mut doc = cmd!(
sh,
"cargo doc --package hermit-kernel --no-deps --document-private-items"
);

for arch in Arch::all() {
arch.install()?;
let triple = arch.triple();
doc = doc.arg(format!("--target={triple}"));
cmd!(sh, "cargo doc --package hermit-kernel --no-deps --document-private-items --target={triple}")
.run()?;
}

doc.run()?;

Ok(())
}
}

0 comments on commit dca9fe1

Please sign in to comment.