(modes: &[RunnerMode], setup_cache_dir: Option<&Path>)
| 55 | } |
| 56 | |
| 57 | async fn setup(modes: &[RunnerMode], setup_cache_dir: Option<&Path>) -> Result<()> { |
| 58 | let system_info = SystemInfo::new()?; |
| 59 | let executors = get_executors_from_modes(modes); |
| 60 | start_group!("Setting up the environment"); |
| 61 | for executor in executors { |
| 62 | setup_executor(executor.as_ref(), &system_info, setup_cache_dir).await?; |
| 63 | } |
| 64 | info!("Environment setup completed"); |
| 65 | end_group!(); |
| 66 | Ok(()) |
| 67 | } |
| 68 | |
| 69 | /// Set up a single executor based on its support level on the current system. |
| 70 | /// |
no test coverage detected