@@ -65340,16 +65340,13 @@ function resolveVersionInput() {
65340
65340
function run() {
65341
65341
var _a;
65342
65342
return __awaiter(this, void 0, void 0, function* () {
65343
- // According to the README windows binaries do not require to be installed
65344
- // in the specific location, but Mac and Linux do
65345
- if (!utils_1.IS_WINDOWS && !((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim())) {
65346
- if (utils_1.IS_LINUX)
65347
- process.env['AGENT_TOOLSDIRECTORY'] = '/opt/hostedtoolcache';
65348
- else
65349
- process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
65343
+ if (utils_1.IS_MAC) {
65344
+ process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
65345
+ }
65346
+ if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
65350
65347
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
65351
65348
}
65352
- core.debug(`Python is expected to be installed into RUNNER_TOOL_CACHE= ${process.env['RUNNER_TOOL_CACHE']}`);
65349
+ core.debug(`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`);
65353
65350
try {
65354
65351
const version = resolveVersionInput();
65355
65352
const checkLatest = core.getBooleanInput('check-latest');
@@ -65425,7 +65422,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
65425
65422
return (mod && mod.__esModule) ? mod : { "default": mod };
65426
65423
};
65427
65424
Object.defineProperty(exports, "__esModule", ({ value: true }));
65428
- exports.logWarning = exports.getLinuxOSReleaseInfo = exports.isCacheFeatureAvailable = exports.isGhes = exports.validatePythonVersionFormatForPyPy = exports.writeExactPyPyVersionFile = exports.readExactPyPyVersionFile = exports.getPyPyVersionFromPath = exports.isNightlyKeyword = exports.validateVersion = exports.createSymlinkInFolder = exports.WINDOWS_PLATFORMS = exports.WINDOWS_ARCHS = exports.IS_LINUX = exports.IS_WINDOWS = void 0;
65425
+ exports.logWarning = exports.getLinuxOSReleaseInfo = exports.isCacheFeatureAvailable = exports.isGhes = exports.validatePythonVersionFormatForPyPy = exports.writeExactPyPyVersionFile = exports.readExactPyPyVersionFile = exports.getPyPyVersionFromPath = exports.isNightlyKeyword = exports.validateVersion = exports.createSymlinkInFolder = exports.WINDOWS_PLATFORMS = exports.WINDOWS_ARCHS = exports.IS_MAC = exports. IS_LINUX = exports.IS_WINDOWS = void 0;
65429
65426
const cache = __importStar(__nccwpck_require__(7799));
65430
65427
const core = __importStar(__nccwpck_require__(2186));
65431
65428
const fs_1 = __importDefault(__nccwpck_require__(7147));
@@ -65434,6 +65431,7 @@ const semver = __importStar(__nccwpck_require__(1383));
65434
65431
const exec = __importStar(__nccwpck_require__(1514));
65435
65432
exports.IS_WINDOWS = process.platform === 'win32';
65436
65433
exports.IS_LINUX = process.platform === 'linux';
65434
+ exports.IS_MAC = process.platform === 'darwin';
65437
65435
exports.WINDOWS_ARCHS = ['x86', 'x64'];
65438
65436
exports.WINDOWS_PLATFORMS = ['win32', 'win64'];
65439
65437
const PYPY_VERSION_FILE = 'PYPY_VERSION';
0 commit comments