Skip to content

Commit

Permalink
Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jul 26, 2024
1 parent 74a8acf commit dfce53c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ruby_executable/src/bin/ruby_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ fn ruby_build(args: &RubyArgs) -> Result<(), Box<dyn std::error::Error>> {

log = {
let mut bullet = log.bullet(format!("Docker image {image_name}"));

let mut docker_build = Command::new("docker");
docker_build.arg("build");
docker_build.args(["--platform", &format!("linux/{arch}")]);
Expand Down Expand Up @@ -171,6 +172,22 @@ fn ruby_build(args: &RubyArgs) -> Result<(), Box<dyn std::error::Error>> {
);

bullet = bullet.sub_bullet(format!("Copying SHA tgz {}", sha_seven_path.display(),));
println!(
"File {} exists on disk {}",
output_tar.display(),
output_tar.exists()
);

fs_err::write(output_tar.parent().unwrap(), "")?;

Command::new("bash")
.arg("-c")
.arg(format!(
"cd {} && ls -la",
output_tar.parent().unwrap().display()
))
.stream_output(std::io::stdout(), std::io::stderr())?;

fs_err::copy(output_tar, &sha_seven_path)?;

let artifact = Artifact {
Expand Down

0 comments on commit dfce53c

Please sign in to comment.