add support for arm64 Windows

This commit is contained in:
Dmitry Shibanov 2023-12-20 16:52:29 +01:00
parent b39b52d121
commit 026d4a4820
6 changed files with 63 additions and 14 deletions

View file

@ -83333,6 +83333,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.unique = exports.printEnvDetailsAndSetOutput = exports.parseNodeVersionFile = void 0;
const core = __importStar(__nccwpck_require__(2186));
const exec = __importStar(__nccwpck_require__(1514));
const io = __importStar(__nccwpck_require__(7436));
function parseNodeVersionFile(contents) {
var _a, _b, _c;
let nodeVersion;
@ -83376,7 +83377,8 @@ function printEnvDetailsAndSetOutput() {
return __awaiter(this, void 0, void 0, function* () {
core.startGroup('Environment details');
const promises = ['node', 'npm', 'yarn'].map((tool) => __awaiter(this, void 0, void 0, function* () {
const output = yield getToolVersion(tool, ['--version']);
const pathTool = yield io.which(tool, false);
const output = pathTool ? yield getToolVersion(tool, ['--version']) : '';
return { tool, output };
}));
const tools = yield Promise.all(promises);