workflows: support ephemeral 13-arm64
parent
783c6b5b37
commit
bd3a103351
|
@ -48,7 +48,7 @@ jobs:
|
||||||
.map(s => s.trim())
|
.map(s => s.trim())
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.map(s => {
|
.map(s => {
|
||||||
if (intelMacOSRegex.test(s)) // Ephemeral runners
|
if (intelMacOSRegex.test(s) || s == "13-arm64") // Ephemeral runners
|
||||||
return {runner: `${s}-${context.runId}-${process.env.GITHUB_RUN_ATTEMPT}`};
|
return {runner: `${s}-${context.runId}-${process.env.GITHUB_RUN_ATTEMPT}`};
|
||||||
else if (linuxRegex.test(s))
|
else if (linuxRegex.test(s))
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -48,10 +48,13 @@ module Homebrew
|
||||||
if macos_version.outdated_release? || macos_version.prerelease?
|
if macos_version.outdated_release? || macos_version.prerelease?
|
||||||
nil
|
nil
|
||||||
else
|
else
|
||||||
macos_runners = [{
|
ephemeral_suffix = "-#{ENV.fetch("GITHUB_RUN_ID")}-#{ENV.fetch("GITHUB_RUN_ATTEMPT")}"
|
||||||
runner: "#{macos_version}-#{ENV.fetch("GITHUB_RUN_ID")}-#{ENV.fetch("GITHUB_RUN_ATTEMPT")}",
|
macos_runners = [{ runner: "#{macos_version}#{ephemeral_suffix}" }]
|
||||||
}]
|
if macos_version >= :ventura
|
||||||
macos_runners << { runner: "#{macos_version}-arm64" } if macos_version >= :big_sur
|
macos_runners << { runner: "#{macos_version}-arm64#{ephemeral_suffix}" }
|
||||||
|
elsif macos_version >= :big_sur
|
||||||
|
macos_runners << { runner: "#{macos_version}-arm64" }
|
||||||
|
end
|
||||||
macos_runners
|
macos_runners
|
||||||
end
|
end
|
||||||
end << linux_runner_spec
|
end << linux_runner_spec
|
||||||
|
@ -63,10 +66,9 @@ module Homebrew
|
||||||
nil # Don't rebottle for older macOS versions (no CI to build them).
|
nil # Don't rebottle for older macOS versions (no CI to build them).
|
||||||
else
|
else
|
||||||
runner = macos_version.to_s
|
runner = macos_version.to_s
|
||||||
runner += if tag.arch == :x86_64
|
runner += "-#{tag.arch}" if tag.arch != :x86_64
|
||||||
"-#{ENV.fetch("GITHUB_RUN_ID")}-#{ENV.fetch("GITHUB_RUN_ATTEMPT")}"
|
if tag.arch == :x86_64 || macos_version >= :ventura
|
||||||
else
|
runner += "-#{ENV.fetch("GITHUB_RUN_ID")}-#{ENV.fetch("GITHUB_RUN_ATTEMPT")}"
|
||||||
"-#{tag.arch}"
|
|
||||||
end
|
end
|
||||||
{ runner: runner }
|
{ runner: runner }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue