Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ E.g., `8.10` will be resolved to `8.10.7`, and so will `8`.
- `latest-nightly` (requires the resp. `ghcup-release-channel`, e.g. `https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml`)
- `latest` (default)
- `9.14.1` `9.14`
- `9.12.3` `9.12`
- `9.12.2`
- `9.12.2` `9.12`
- `9.12.1`
- `9.10.3` `9.10`
- `9.10.2`
Expand Down
17 changes: 9 additions & 8 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions lib/setup-haskell.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lib/versions.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions src/setup-haskell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@ export default async function run(
core.debug(`run: os = ${JSON.stringify(os)}`);
core.debug(`run: opts = ${JSON.stringify(opts)}`);

// Andreas Abel, 2026-01-01, https://github.com/haskell-actions/setup/issues/78
// Add ghcup vanilla and prereleases channels by default.
addGhcupReleaseChannel('vanilla', os, arch);
addGhcupReleaseChannel('prereleases', os, arch);

if (opts.ghcup.releaseChannel) {
await core.group(`Preparing ghcup environment`, async () =>
addGhcupReleaseChannel(opts.ghcup.releaseChannel!.toString(), os, arch)
);
}
await core.group(`Preparing ghcup environment`, async () => {
// Andreas Abel, 2026-01-01, https://github.com/haskell-actions/setup/issues/78
// Add ghcup vanilla and prereleases channels by default.
addGhcupReleaseChannel('vanilla', os, arch);
addGhcupReleaseChannel('prereleases', os, arch);
if (opts.ghcup.releaseChannel)
addGhcupReleaseChannel(opts.ghcup.releaseChannel.toString(), os, arch);
});

for (const [t, {resolved}] of Object.entries(opts).filter(
o => o[1].enable
Expand Down
1 change: 0 additions & 1 deletion src/versions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"ghc": [
"9.14.1",
"9.12.3",
"9.12.2",
"9.12.1",
"9.10.3",
Expand Down
Loading