mirror of
https://github.com/actions/setup-python.git
synced 2025-04-21 17:23:52 +00:00
fix macos names for graalpy
This commit is contained in:
parent
928058c6ad
commit
b69593376d
8
dist/setup/index.js
vendored
8
dist/setup/index.js
vendored
@ -69735,10 +69735,14 @@ function findAsset(item, architecture, platform) {
|
||||
: architecture === 'arm64'
|
||||
? 'aarch64'
|
||||
: architecture;
|
||||
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
|
||||
const graalpyPlatform = platform === 'win32'
|
||||
? 'windows'
|
||||
: platform === 'darwin'
|
||||
? 'macos'
|
||||
: platform;
|
||||
if (item.assets) {
|
||||
return item.assets.find((file) => {
|
||||
const match_data = file.name.match('.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$');
|
||||
const match_data = file.name.match('.*(macos|linux|windows)-(amd64|aarch64).tar.gz$');
|
||||
return (match_data &&
|
||||
match_data[1] === graalpyPlatform &&
|
||||
match_data[2] === graalpyArch);
|
||||
|
@ -233,11 +233,16 @@ export function findAsset(
|
||||
: architecture === 'arm64'
|
||||
? 'aarch64'
|
||||
: architecture;
|
||||
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
|
||||
if (item.assets) {
|
||||
const graalpyPlatform =
|
||||
platform === 'win32'
|
||||
? 'windows'
|
||||
: platform === 'darwin'
|
||||
? 'macos'
|
||||
: platform;
|
||||
if (item.assets) {
|
||||
return item.assets.find((file: IGraalPyManifestAsset) => {
|
||||
const match_data = file.name.match(
|
||||
'.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$'
|
||||
'.*(macos|linux|windows)-(amd64|aarch64).tar.gz$'
|
||||
);
|
||||
return (
|
||||
match_data &&
|
||||
|
Loading…
Reference in New Issue
Block a user