3
0
Fork 0
mirror of https://gitea.com/actions/setup-python.git synced 2024-11-25 19:49:35 +01:00

feat: Add 'IS_MAC' util

This commit is contained in:
Leon Wright 2022-07-22 16:02:07 +08:00
parent 9f1915a970
commit 467a981225
No known key found for this signature in database
GPG key ID: 95F5A1DE99BFCA3D
3 changed files with 5 additions and 2 deletions

1
dist/setup/index.js vendored
View file

@ -65430,6 +65430,7 @@ const semver = __importStar(__nccwpck_require__(1383));
const exec = __importStar(__nccwpck_require__(1514));
exports.IS_WINDOWS = process.platform === 'win32';
exports.IS_LINUX = process.platform === 'linux';
exports.IS_MAC = process.platform === 'darwin';
exports.WINDOWS_ARCHS = ['x86', 'x64'];
exports.WINDOWS_PLATFORMS = ['win32', 'win64'];
const PYPY_VERSION_FILE = 'PYPY_VERSION';

View file

@ -7,7 +7,8 @@ import fs from 'fs';
import {getCacheDistributor} from './cache-distributions/cache-factory';
import {
isCacheFeatureAvailable,
logWarning
logWarning,
IS_MAC
} from './utils';
function isPyPyVersion(versionSpec: string) {

View file

@ -7,6 +7,7 @@ import * as exec from '@actions/exec';
export const IS_WINDOWS = process.platform === 'win32';
export const IS_LINUX = process.platform === 'linux';
export const IS_MAC = process.platform === 'darwin';
export const WINDOWS_ARCHS = ['x86', 'x64'];
export const WINDOWS_PLATFORMS = ['win32', 'win64'];
const PYPY_VERSION_FILE = 'PYPY_VERSION';