haskell-actions/Setup Haskell
Set up a specific version of GHC and Cabal and add the command-line tools to the PATH
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| ghc-version | Version of GHC to use. If set to "latest", it will always get the latest stable version. If set to "head", it will always get the latest build of GHC. | no | latest |
| cabal-version | Version of Cabal to use. If set to "latest", it will always get the latest stable version. If set to "head", it will always get the latest build of cabal. | no | latest |
| stack-version | Version of Stack to use. If set to "latest", it will always get the latest stable version. | no | latest |
| enable-stack | If specified, will setup Stack. | no | — |
| stack-no-global | If specified, enable-stack must be set. Prevents installing GHC and Cabal globally. | no | — |
| stack-setup-ghc | If specified, enable-stack must be set. Will run stack setup to install the specified GHC. | no | — |
| cabal-update | Set to `false` to prevent `cabal update` from being run. | no | true |
| ghcup-release-channel | A release channel URL to add to ghcup via `ghcup config add-release-channel`. | no | — |
| disable-matcher | If specified, disables match messages from GHC as GitHub CI annotations. | no | — |
Outputs
| name | description |
|---|---|
| ghc-version | The resolved version of ghc |
| cabal-version | The resolved version of cabal |
| stack-version | The resolved version of stack |
| ghc-exe | The path of the ghc _executable_ |
| cabal-exe | The path of the cabal _executable_ |
| stack-exe | The path of the stack _executable_ |
| ghc-path | The path of the ghc executable _directory_ |
| cabal-path | The path of the cabal executable _directory_ |
| stack-path | The path of the stack executable _directory_ |
| cabal-store | The path to the cabal store |
| stack-root | The path to the stack root (equal to the STACK_ROOT environment variable if it is set; otherwise an OS-specific default) |