Add basic cabal setup steps
This commit is contained in:
12
dist/index.js
vendored
12
dist/index.js
vendored
@@ -6954,6 +6954,18 @@ const exec_1 = __webpack_require__(986);
|
||||
await exec_1.exec('stack', ['setup', opts.ghc.version]);
|
||||
core.endGroup();
|
||||
}
|
||||
if (opts.cabal.enable) {
|
||||
core.startGroup('Setting up cabal');
|
||||
await exec_1.exec('cabal', [
|
||||
'user-config',
|
||||
'update',
|
||||
'-a',
|
||||
'http-transport: plain-http',
|
||||
'-v3'
|
||||
]);
|
||||
await exec_1.exec('cabal', ['update']);
|
||||
core.endGroup();
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
||||
@@ -20,6 +20,19 @@ import {exec} from '@actions/exec';
|
||||
await exec('stack', ['setup', opts.ghc.version]);
|
||||
core.endGroup();
|
||||
}
|
||||
|
||||
if (opts.cabal.enable) {
|
||||
core.startGroup('Setting up cabal');
|
||||
await exec('cabal', [
|
||||
'user-config',
|
||||
'update',
|
||||
'-a',
|
||||
'http-transport: plain-http',
|
||||
'-v3'
|
||||
]);
|
||||
await exec('cabal', ['update']);
|
||||
core.endGroup();
|
||||
}
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user