@@ -65340,16 +65340,13 @@ function resolveVersionInput() {
6534065340function run() {
6534165341 var _a;
6534265342 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()) {
6535065347 process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
6535165348 }
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']}`);
6535365350 try {
6535465351 const version = resolveVersionInput();
6535565352 const checkLatest = core.getBooleanInput('check-latest');
@@ -65425,7 +65422,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6542565422 return (mod && mod.__esModule) ? mod : { "default": mod };
6542665423};
6542765424Object.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;
6542965426const cache = __importStar(__nccwpck_require__(7799));
6543065427const core = __importStar(__nccwpck_require__(2186));
6543165428const fs_1 = __importDefault(__nccwpck_require__(7147));
@@ -65434,6 +65431,7 @@ const semver = __importStar(__nccwpck_require__(1383));
6543465431const exec = __importStar(__nccwpck_require__(1514));
6543565432exports.IS_WINDOWS = process.platform === 'win32';
6543665433exports.IS_LINUX = process.platform === 'linux';
65434+ exports.IS_MAC = process.platform === 'darwin';
6543765435exports.WINDOWS_ARCHS = ['x86', 'x64'];
6543865436exports.WINDOWS_PLATFORMS = ['win32', 'win64'];
6543965437const PYPY_VERSION_FILE = 'PYPY_VERSION';
0 commit comments