Updated node_mobules from what huskey wants to do

This commit is contained in:
Timothy Clem
2019-09-30 10:02:47 -07:00
parent a7a93607c6
commit caa2e9e5b6
7412 changed files with 26 additions and 1868293 deletions

View File

@@ -18,23 +18,24 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const installer_1 = require("./installer");
// ghc and cabal are installed directly to /opt so use that directlly instead of
// copying over to the toolcache dir.
const baseInstallDir = '/opt';
const defaultGHCVersion = '8.6.5';
const defualtCabalVersion = '3.0';
const defaultCabalVersion = '3.0';
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
yield installer_1.cacheHaskellTool('/opt', 'ghc');
yield installer_1.cacheHaskellTool('/opt', 'cabal');
let ghcVersion = core.getInput('ghc-version');
if (!ghcVersion) {
ghcVersion = defaultGHCVersion;
}
yield installer_1.findHaskellGHCVersion(ghcVersion);
yield installer_1.findHaskellGHCVersion(baseInstallDir, ghcVersion);
let cabalVersion = core.getInput('cabal-version');
if (!cabalVersion) {
cabalVersion = defualtCabalVersion;
cabalVersion = defaultCabalVersion;
}
yield installer_1.findHaskellCabalVersion(cabalVersion);
yield installer_1.findHaskellCabalVersion(baseInstallDir, cabalVersion);
}
catch (error) {
core.setFailed(error.message);