Skip to content

Commit

Permalink
fix releng
Browse files Browse the repository at this point in the history
Created using spr 1.3.6-beta.1
  • Loading branch information
sunshowers committed Dec 21, 2024
1 parent 670fc82 commit 4a472ea
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions dev-tools/releng/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,12 @@ async fn main() -> Result<()> {
artifacts_path.as_str(),
"target",
"create",
"--preset",
target.as_str(),
])
.args(target.target_args())
// Note: Do not override the preset here! All release targets
// must be configured entirely via the `target.preset` table
// in `package-manifest.toml`.
.env_remove("CARGO_MANIFEST_DIR"),
)
.after("omicron-package");
Expand Down Expand Up @@ -639,22 +643,6 @@ impl Target {
}
}

fn target_args(self) -> &'static [&'static str] {
match self {
Target::Host => &[
"--image",
"standard",
"--machine",
"gimlet",
"--switch",
"asic",
"--rack-topology",
"multi-sled",
],
Target::Recovery => &["--image", "trampoline"],
}
}

fn proto_packages(
self,
) -> &'static [(&'static PackageName, InstallMethod)] {
Expand Down

0 comments on commit 4a472ea

Please sign in to comment.