mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-19 20:14:05 +08:00
Add cyclonedx (#1000)
Also improve check that gnu binaries are not needed if musl exists.
This commit is contained in:
@@ -282,6 +282,19 @@ impl BaseManifest {
|
||||
}
|
||||
}
|
||||
}
|
||||
if self.platform.is_empty() {
|
||||
panic!("At least one platform must be specified");
|
||||
}
|
||||
if !self.prefer_linux_gnu
|
||||
&& (self.platform.contains_key(&HostPlatform::x86_64_linux_gnu)
|
||||
&& self.platform.contains_key(&HostPlatform::x86_64_linux_musl))
|
||||
&& (self.platform.contains_key(&HostPlatform::aarch64_linux_gnu)
|
||||
&& self.platform.contains_key(&HostPlatform::aarch64_linux_musl))
|
||||
{
|
||||
panic!(
|
||||
"When *-linux-musl platform is specified, *-linux-gnu for the same architecture will never be used and should not be specified"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user