You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `ghc-version` | GHC version to use, e.g. `9.2` or `9.2.5`. | `string` | `latest` |
190
-
| `cabal-version` | Cabal version to use, e.g. `3.6`. | `string` | `latest` |
191
-
| `stack-version` | Stack version to use, e.g. `latest`. Stack will only be installed if `enable-stack` is set. | `string` | `latest` |
192
-
| `enable-stack` | If set, will setup Stack. | "boolean" | false/unset |
193
-
| `stack-no-global` | If set, `enable-stack` must be set. Prevents installing GHC and Cabal globally. | "boolean" | false/unset |
194
-
| `stack-setup-ghc` | If set, `enable-stack` must be set. Runs stack setup to install the specified GHC. (Note: setting this does _not_ imply `stack-no-global`.) | "boolean" | false/unset |
195
-
| `disable-matcher` | If set, disables match messages from GHC as GitHub CI annotations. | "boolean" | false/unset |
196
-
| `cabal-update` | If set to `false`, skip `cabal update` step. | `boolean` | `true` |
197
-
| `ghcup-release-channel` | If set, add a [release channel](https://www.haskell.org/ghcup/guide/#pre-release-channels) to ghcup. | `URL` | none |
198
-
199
-
Note: "boolean"types are set/unset, not true/false.
200
-
That is, setting any "boolean" to a value other than the empty string (`""`) will be considered true/set.
201
-
However, to avoid confusion and for forward compatibility, it is still recommended to **only use value `true` to set a "boolean" flag.**
202
-
203
-
In contrast, a proper `boolean` input like `cabal-update` only accepts values `true` and `false`.
| `ghc-version` | GHC version to use, e.g. `9.2` or `9.2.5`. | `string` | `latest` |
190
+
| `cabal-version` | Cabal version to use, e.g. `3.6`. | `string` | `latest` |
191
+
| `stack-version` | Stack version to use, e.g. `latest`. Stack will only be installed if `enable-stack` is set. | `string` | `latest` |
192
+
| `enable-stack` | If set, will setup Stack. | "boolean" | false/unset |
193
+
| `stack-no-global` | If set, `enable-stack` must be set. Prevents installing GHC and Cabal globally. | "boolean" | false/unset |
194
+
| `stack-setup-ghc` | If set, `enable-stack` must be set. Runs stack setup to install the specified GHC. (Note: setting this does _not_ imply `stack-no-global`.) | "boolean" | false/unset |
195
+
| `disable-matcher` | If set, disables match messages from GHC as GitHub CI annotations. | "boolean" | false/unset |
196
+
| `cabal-update` | If set to `false`, skip `cabal update` step. | `boolean` | `true` |
197
+
| `ghcup-release-channels` | If set, add [release channels](https://www.haskell.org/ghcup/guide/#pre-release-channels) to ghcup. | `URL[]` | none |
198
+
199
+
Notes:
200
+
201
+
- "boolean"types are set/unset, not true/false. That is, setting any "boolean" to a value other than the empty string (`""`) will be considered true/set.
202
+
However, to avoid confusion and for forward compatibility, it is still recommended to **only use value `true` to set a "boolean" flag.**
203
+
204
+
In contrast, a proper `boolean` input like `cabal-update` only accepts values `true` and `false`.
205
+
206
+
- Inputs that can take multiple values (like `ghcup-release-channels`) should be specified as a comma separated list, e.g.
207
+
208
+
```yaml
209
+
- uses: haskell-actions/setup@v2
210
+
with:
211
+
ghcup-release-channels: >
212
+
https://example.com/channel1,
213
+
https://example.com/channel2,
214
+
https://example.com/channel3,
215
+
```
204
216
205
217
## Outputs
206
218
@@ -237,6 +249,7 @@ E.g., `8.10` will be resolved to `8.10.7`, and so will `8`.
237
249
**GHC:**
238
250
239
251
- `latest-nightly`
252
+
- This requires adding https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml to `ghcup-release-channels`
0 commit comments