Merge pull request #19223 from Homebrew/ghp-oldest-cpu-fix

github_packages: fix oldest CPU variant on arm64 Linux
This commit is contained in:
Bo Anderson 2025-02-03 20:23:48 +00:00 committed by GitHub
commit 789309d781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -371,7 +371,7 @@ class GitHubPackages
os_version ||= OS::LINUX_CI_OS_VERSION
glibc_version = tab["built_on"]["glibc_version"].presence if tab["built_on"].present?
glibc_version ||= OS::LINUX_GLIBC_CI_VERSION
cpu_variant = tab["oldest_cpu_family"] || Hardware::CPU::INTEL_64BIT_OLDEST_CPU.to_s
cpu_variant = tab.dig("built_on", "oldest_cpu_family") || Hardware::CPU::INTEL_64BIT_OLDEST_CPU.to_s
end
platform_hash = {