From 2a18b06812b0e15bb916e1df298d3e740422c47e Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 6 Dec 2024 22:33:53 +0100 Subject: [PATCH] Require macos-13+ for macos-amd64 as builds from now on will be on 13 and 12 can no longer be tested --- common.js | 2 +- dist/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.js b/common.js index d239957..cb2819d 100644 --- a/common.js +++ b/common.js @@ -179,7 +179,7 @@ function isSupportedPlatform() { case 'macos': // See https://github.com/ruby/ruby-builder/blob/master/README.md#naming // 13 on arm64 because of old macos-arm-oss runners - return (os.arch() === 'x64' && parseInt(getOSVersion()) >= 12) || + return (os.arch() === 'x64' && parseInt(getOSVersion()) >= 13) || (os.arch() === 'arm64' && parseInt(getOSVersion()) >= 13) case 'windows': return GitHubHostedPlatforms.includes(getOSNameVersionArch()) diff --git a/dist/index.js b/dist/index.js index 8979c4b..850fa02 100644 --- a/dist/index.js +++ b/dist/index.js @@ -498,7 +498,7 @@ function isSupportedPlatform() { case 'macos': // See https://github.com/ruby/ruby-builder/blob/master/README.md#naming // 13 on arm64 because of old macos-arm-oss runners - return (os.arch() === 'x64' && parseInt(getOSVersion()) >= 12) || + return (os.arch() === 'x64' && parseInt(getOSVersion()) >= 13) || (os.arch() === 'arm64' && parseInt(getOSVersion()) >= 13) case 'windows': return GitHubHostedPlatforms.includes(getOSNameVersionArch())