|
1 | 1 | "use strict"; |
2 | | -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { |
3 | | - if (k2 === undefined) k2 = k; |
4 | | - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |
5 | | -}) : (function(o, m, k, k2) { |
6 | | - if (k2 === undefined) k2 = k; |
7 | | - o[k2] = m[k]; |
8 | | -})); |
9 | | -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { |
10 | | - Object.defineProperty(o, "default", { enumerable: true, value: v }); |
11 | | -}) : function(o, v) { |
12 | | - o["default"] = v; |
13 | | -}); |
14 | | -var __importStar = (this && this.__importStar) || function (mod) { |
15 | | - if (mod && mod.__esModule) return mod; |
16 | | - var result = {}; |
17 | | - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
18 | | - __setModuleDefault(result, mod); |
19 | | - return result; |
20 | | -}; |
21 | 2 | Object.defineProperty(exports, "__esModule", { value: true }); |
22 | 3 | exports.unixInstall = void 0; |
23 | | -const core = __importStar(require("@actions/core")); |
| 4 | +const core = require("@actions/core"); |
24 | 5 | const exec_1 = require("@actions/exec"); |
25 | | -const io = __importStar(require("@actions/io")); |
26 | | -const toolCache = __importStar(require("@actions/tool-cache")); |
27 | | -const os = __importStar(require("os")); |
28 | | -const path = __importStar(require("path")); |
29 | | -const semver = __importStar(require("semver")); |
30 | | -const git = __importStar(require("./git")); |
| 6 | +const io = require("@actions/io"); |
| 7 | +const toolCache = require("@actions/tool-cache"); |
| 8 | +const os = require("os"); |
| 9 | +const path = require("path"); |
| 10 | +const semver = require("semver"); |
| 11 | +const git = require("./git"); |
31 | 12 | async function install(sourceDir, binDir) { |
32 | 13 | await exec_1.exec('make', ['build'], { cwd: sourceDir }); |
33 | 14 | await exec_1.exec('make', ['install', `prefix=${binDir}`], { cwd: sourceDir }); |
|
0 commit comments