Implement fallback install and outputs (#2)

* Add better version support. Restructure code. Implement OS agnostic fallback

* Support latest for cabal and stack. Add enable-stack option.

* Add outputs

* Update documentation. Change default for GHC to latest.
This commit is contained in:
Jared Weakly
2020-04-24 11:53:29 -07:00
committed by GitHub
parent c4e863e92f
commit 120f5dc3eb
19 changed files with 5359 additions and 2031 deletions

21
dist/action.yml vendored
View File

@@ -4,12 +4,25 @@ author: 'GitHub'
inputs:
ghc-version:
required: false
description: 'Exact version of ghc to use.'
default: '8.8.3'
description: 'Version of ghc to use.'
default: '8.8'
cabal-version:
required: false
description: 'Exact version of cabal to use.'
default: '3.0.0.0'
description: 'Version of cabal to use. If set to "latest", it will always get the latest stable version.'
default: 'latest'
stack-version:
required: false
description: 'Version of stack to use. If set to "latest", it will always get the latest stable version.'
default: 'latest'
enable-stack:
required: false
description: 'If specified, will setup stack'
stack-no-global:
required: false
description: 'If specified, enable-stack must be set. Prevents installing GHC and Cabal globally'
stack-setup-ghc:
required: false
description: 'If specified, enable-stack must be set. Will run stack setup to install the specified GHC'
runs:
using: 'node12'
main: 'dist/index.js'

4155
dist/index.js vendored

File diff suppressed because it is too large Load Diff