Skip to content

Commit 146da8d

Browse files
committed
macos15-arm: initial
1 parent ed92d25 commit 146da8d

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

monitor/src/image.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ use settings::{
2727
use tracing::{debug, error, info, warn};
2828

2929
use crate::{
30-
image::{macos13::Macos13, ubuntu2204::Ubuntu2204, windows10::Windows10},
30+
image::{
31+
macos13::{Macos13, MacosUtm},
32+
ubuntu2204::Ubuntu2204,
33+
windows10::Windows10,
34+
},
3135
libvirt::{list_rebuild_guests, list_template_guests},
3236
policy::{runner_images_path, template_or_rebuild_images_path, Policy},
3337
shell::{log_output_as_info, reflink_or_copy_with_warning},
@@ -47,6 +51,10 @@ static IMAGES: LazyLock<BTreeMap<String, Box<dyn Image + Send + Sync>>> = LazyLo
4751
"servo-macos15".to_owned(),
4852
Box::new(Macos13::new(ByteSize::gib(90), Duration::from_secs(2000))),
4953
);
54+
result.insert(
55+
"servo-macos15-arm".to_owned(),
56+
Box::new(MacosUtm::default()),
57+
);
5058
result.insert(
5159
"servo-ubuntu2204".to_owned(),
5260
Box::new(Ubuntu2204::new(

monitor/src/image/macos13.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,34 @@ impl Image for Macos13 {
7474
}
7575
}
7676

77+
#[derive(Default)]
78+
pub struct MacosUtm;
79+
80+
#[expect(unused_variables)]
81+
impl Image for MacosUtm {
82+
fn rebuild(&self, profile: &Profile, snapshot_name: &str) -> eyre::Result<()> {
83+
todo!()
84+
}
85+
fn delete_template(&self, profile: &Profile, snapshot_name: &str) -> eyre::Result<()> {
86+
todo!()
87+
}
88+
fn register_runner(&self, profile: &Profile, runner_guest_name: &str) -> eyre::Result<String> {
89+
todo!()
90+
}
91+
fn create_runner(
92+
&self,
93+
profile: &Profile,
94+
snapshot_name: &str,
95+
runner_guest_name: &str,
96+
runner_id: usize,
97+
) -> eyre::Result<String> {
98+
todo!()
99+
}
100+
fn destroy_runner(&self, runner_guest_name: &str, runner_id: usize) -> eyre::Result<()> {
101+
todo!()
102+
}
103+
}
104+
77105
pub(super) fn rebuild(
78106
profile: &Profile,
79107
snapshot_name: &str,

0 commit comments

Comments
 (0)