Initial project setup

Partly ported from actions/setup-ruby
This commit is contained in:
Timothy Clem
2019-09-23 19:56:26 -07:00
commit 1068d0618d
15 changed files with 5796 additions and 0 deletions

15
src/setup-haskell.ts Normal file
View File

@@ -0,0 +1,15 @@
import * as core from '@actions/core';
import {findHaskellGHCVersion, cacheHaskellTool} from './installer';
async function run() {
try {
await cacheHaskellTool('/opt', 'ghc');
await cacheHaskellTool('/opt', 'cabal');
let ghcVersion = core.getInput('ghc-version');
await findHaskellGHCVersion(ghcVersion);
} catch (error) {
core.setFailed(error.message);
}
}
run();