mirror of
https://github.com/imjasonh/krust
synced 2026-07-07 22:35:25 +00:00
Ensure Docker is available on all platforms and fix Windows cross-compilation
- Use docker/setup-buildx-action for consistent Docker setup across all platforms - Fix Windows rust-lld configuration by using full path instead of command name - Make Docker-dependent tests fail explicitly when Docker is not available - Add proper Docker availability check in integration tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
06b9e37db9
commit
7a7f49c4a3
3 changed files with 76 additions and 11 deletions
|
|
@ -134,8 +134,15 @@ fn test_verbose_logging() -> Result<()> {
|
|||
#[cfg_attr(not(ci), ignore)] // Run in CI, but allow skipping locally
|
||||
fn test_full_build_and_run_workflow() -> Result<()> {
|
||||
// This test requires Docker
|
||||
if StdCommand::new("docker").arg("version").output().is_err() {
|
||||
panic!("Docker is required for this test but is not available");
|
||||
let docker_check = StdCommand::new("docker").arg("version").output();
|
||||
match docker_check {
|
||||
Ok(output) if output.status.success() => {
|
||||
// Docker is available, proceed with test
|
||||
}
|
||||
_ => {
|
||||
// Docker not available or not working
|
||||
panic!("Docker is required for this test but is not available");
|
||||
}
|
||||
}
|
||||
|
||||
// Get the example project directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue