Initial project setup
Partly ported from actions/setup-ruby
This commit is contained in:
15
src/setup-haskell.ts
Normal file
15
src/setup-haskell.ts
Normal 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();
|
||||
Reference in New Issue
Block a user