cargo: run host unit tests before builds
ci / check (push) Failing after 8m51s

This commit is contained in:
agent-pool-12
2026-10-17 15:50:09 +00:00
parent 3bc462ffd2
commit 22590c608d
7 changed files with 242 additions and 62 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ async fn init(dir: PathBuf) -> Result<()> {
std::fs::create_dir_all(&source)?;
AGENT_SOURCE.extract(&source).context("extract agent source")?;
println!("Building the agent actor (the first build takes a few minutes) …");
let out = cargo_actor::Cargo::new(world.clone())?.build(&source).await.context("build agent")?;
let out = cargo_actor::Cargo::new(world.clone())?.build(&source, false).await.context("build agent")?;
std::fs::copy(&out.wasm, world.wasm_path("agent"))?;
println!("Built in {:.1} s. Start the world with: sausage run {}", out.seconds, dir.display());
Ok(())