1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 14:55:35 +00:00

Fix cross-compilation and ensure all tests run on all platforms

- Add detailed error logging for cargo build failures (show both stdout and stderr)
- Install Docker on Windows and macOS CI runners
- Remove continue-on-error from test matrix - tests should fail properly
- Add detailed verification of cross-compilation setup in CI
- Improve Docker availability check in tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-06-07 21:39:18 -04:00
parent 6681c2aef5
commit 06b9e37db9
Failed to extract signature
3 changed files with 20 additions and 4 deletions

View file

@ -1,7 +1,7 @@
use anyhow::{Context, Result};
use std::path::{Path, PathBuf};
use std::process::Command;
use tracing::{debug, info};
use tracing::{debug, error, info};
#[cfg(test)]
mod tests;
@ -87,7 +87,11 @@ impl RustBuilder {
let output = cmd.output().context("Failed to execute cargo build")?;
if !output.status.success() {
let stdout = String::from_utf8_lossy(&output.stdout);
let stderr = String::from_utf8_lossy(&output.stderr);
error!("Cargo build failed!");
error!("stdout:\n{}", stdout);
error!("stderr:\n{}", stderr);
anyhow::bail!("Cargo build failed: {}", stderr);
}