Files
setup-haskell/action.yml
jared-w 8154472447 Add Windows and macOS Support (#1)
* Re-base onto upstream master

* Use os over operating-system per json schema suggestion

* Upgrade dependencies

* Update action.yml syntax

* Restructure repo on latest typescript-action

* Update workflow.yml to use same node version as action.yml

* Pull in improvements from open PRs. Fix package.json scripts

* Type function return arguments

* Don't eslint automatic formatting changes

* Initial implementation of ghc+cabal install for linux/mac/windows

* Update README

* Fix cabal version in action.yml

* Implement initial simplistic test suite

* Test action with CI

* Use chocolatey directly to install ghc and cabal

* Try pre-installed tool on linux first

* Clean up documentation

* Expand README

* Test super old GHC on ubuntu

* Implement support for stack

* Update documentation about Stack support

* Test stack install in Github Actions CI

authored-by: Jared Weakly <jweakly@galois.com>
2020-03-23 11:24:06 -07:00

25 lines
861 B
YAML

name: 'Setup Haskell'
description: 'Set up a specific version of GHC and Cabal and add the command-line tools to the PATH'
author: 'GitHub'
inputs:
ghc-version:
required: false
description: 'Exact version of ghc to use.'
default: '8.8.3'
cabal-version:
required: false
description: 'Exact version of cabal to use.'
default: '3.0.0.0'
stack-version:
required: false
description: 'If specified, will download the given version of stack. If set to "latest", it will always get the latest stable version of stack.'
stack-no-global:
required: false
description: 'If specified, stack-version must be set. Prevents installing GHC and Cabal globally'
stack-setup-ghc:
required: false
description: 'If specified, will run stack setup to install the specified GHC'
runs:
using: 'node12'
main: 'dist/index.js'