Skip to content

Commit

Permalink
feat: Add 'IS_MAC' util
Browse files Browse the repository at this point in the history
  • Loading branch information
techman83 committed Jul 26, 2022
1 parent 9f1915a commit 467a981
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/setup/index.js
Expand Up @@ -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';
Expand Down Expand Up @@ -65761,4 +65762,4 @@ module.exports = JSON.parse('["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac",
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;
3 changes: 2 additions & 1 deletion src/setup-python.ts
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Expand Up @@ -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';
Expand Down

0 comments on commit 467a981

Please sign in to comment.