diff --git a/src/main.rs b/src/main.rs index 86741b2..9375680 100644 --- a/src/main.rs +++ b/src/main.rs @@ -156,6 +156,8 @@ fn run( run_log.write("CI run finished successfully\n".into())?; + std::fs::remove_dir_all(src).map_err(|e| NativeError::RemoveDir(src.into(), e))?; + Ok(()) } @@ -335,4 +337,7 @@ enum NativeError { #[error("failed to write to log file {0}")] WriteLogFile(PathBuf, #[source] std::io::Error), + + #[error("failed to remove {0}")] + RemoveDir(PathBuf, #[source] std::io::Error), }