mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 14:40:32 +00:00
codegen: Allow lacking x86_64_macos when aarch64_macos is available
This commit is contained in:
@@ -5,12 +5,12 @@
|
|||||||
"rust_crate": "${package}",
|
"rust_crate": "${package}",
|
||||||
"asset_name": "${package}-${rust_target}.tar.gz",
|
"asset_name": "${package}-${rust_target}.tar.gz",
|
||||||
"version_range": "> 1.0.5",
|
"version_range": "> 1.0.5",
|
||||||
"broken": ["2.0.0", "2.0.1", "2.0.2"],
|
|
||||||
"platform": {
|
"platform": {
|
||||||
"x86_64_linux_gnu": {},
|
"x86_64_linux_gnu": {},
|
||||||
"x86_64_macos": {},
|
"x86_64_macos": {},
|
||||||
"x86_64_windows": {
|
"x86_64_windows": {
|
||||||
"asset_name": "${package}-${rust_target}.zip"
|
"asset_name": "${package}-${rust_target}.zip"
|
||||||
}
|
},
|
||||||
|
"aarch64_macos": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -620,6 +620,14 @@ fn main() -> Result<()> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if p == HostPlatform::x86_64_macos
|
||||||
|
&& latest_manifest.download_info.contains_key(&HostPlatform::aarch64_macos)
|
||||||
|
{
|
||||||
|
// The value of x86_64 macOS binaries has significantly decreased since GitHub Actions
|
||||||
|
// deprecated macos-13 runner. While the recently introduced macos-15-intel is available
|
||||||
|
// until 2027-08, people aren't paying much attention to it at this time.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
bail!(
|
bail!(
|
||||||
"platform list in base manifest for {package} contains {p:?}, \
|
"platform list in base manifest for {package} contains {p:?}, \
|
||||||
but latest release ({latest_version}) doesn't contain it; \
|
but latest release ({latest_version}) doesn't contain it; \
|
||||||
|
|||||||
Reference in New Issue
Block a user