mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-28 01:50:27 +00:00
codegen: Dedup x86_64_windows/aarch64_windows
This commit is contained in:
@@ -454,6 +454,14 @@ fn main() -> Result<()> {
|
|||||||
// macOS universal binary or x86_64 binary that works on both x86_64 and AArch64 (rosetta).
|
// macOS universal binary or x86_64 binary that works on both x86_64 and AArch64 (rosetta).
|
||||||
download_info.remove(&HostPlatform::aarch64_macos);
|
download_info.remove(&HostPlatform::aarch64_macos);
|
||||||
}
|
}
|
||||||
|
if download_info.contains_key(&HostPlatform::x86_64_windows)
|
||||||
|
&& download_info.contains_key(&HostPlatform::aarch64_windows)
|
||||||
|
&& download_info[&HostPlatform::x86_64_windows].url
|
||||||
|
== download_info[&HostPlatform::aarch64_windows].url
|
||||||
|
{
|
||||||
|
// x86_64 Windows binary that works on both x86_64 and AArch64.
|
||||||
|
download_info.remove(&HostPlatform::aarch64_windows);
|
||||||
|
}
|
||||||
has_build_metadata |= !semver_version.build.is_empty();
|
has_build_metadata |= !semver_version.build.is_empty();
|
||||||
if semver_version.pre.is_empty() {
|
if semver_version.pre.is_empty() {
|
||||||
semver_versions.insert(semver_version.clone());
|
semver_versions.insert(semver_version.clone());
|
||||||
|
|||||||
Reference in New Issue
Block a user