mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
fix macos names for graalpy
This commit is contained in:
parent
928058c6ad
commit
b69593376d
2 changed files with 14 additions and 5 deletions
8
dist/setup/index.js
vendored
8
dist/setup/index.js
vendored
|
@ -69735,10 +69735,14 @@ function findAsset(item, architecture, platform) {
|
||||||
: architecture === 'arm64'
|
: architecture === 'arm64'
|
||||||
? 'aarch64'
|
? 'aarch64'
|
||||||
: architecture;
|
: architecture;
|
||||||
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
|
const graalpyPlatform = platform === 'win32'
|
||||||
|
? 'windows'
|
||||||
|
: platform === 'darwin'
|
||||||
|
? 'macos'
|
||||||
|
: platform;
|
||||||
if (item.assets) {
|
if (item.assets) {
|
||||||
return item.assets.find((file) => {
|
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 &&
|
return (match_data &&
|
||||||
match_data[1] === graalpyPlatform &&
|
match_data[1] === graalpyPlatform &&
|
||||||
match_data[2] === graalpyArch);
|
match_data[2] === graalpyArch);
|
||||||
|
|
|
@ -233,11 +233,16 @@ export function findAsset(
|
||||||
: architecture === 'arm64'
|
: architecture === 'arm64'
|
||||||
? 'aarch64'
|
? 'aarch64'
|
||||||
: architecture;
|
: architecture;
|
||||||
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
|
const graalpyPlatform =
|
||||||
if (item.assets) {
|
platform === 'win32'
|
||||||
|
? 'windows'
|
||||||
|
: platform === 'darwin'
|
||||||
|
? 'macos'
|
||||||
|
: platform;
|
||||||
|
if (item.assets) {
|
||||||
return item.assets.find((file: IGraalPyManifestAsset) => {
|
return item.assets.find((file: IGraalPyManifestAsset) => {
|
||||||
const match_data = file.name.match(
|
const match_data = file.name.match(
|
||||||
'.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$'
|
'.*(macos|linux|windows)-(amd64|aarch64).tar.gz$'
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
match_data &&
|
match_data &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue