Skip to content

Commit

Permalink
CI: update Stack and GHC (jaspervdj#978)
Browse files Browse the repository at this point in the history
* CI: update Stack and GHC

New versions are the ones recommended by `ghcup tui`. Also, the Stack CI
job uses the same GHC (9.2.5) as the Stackage LTS snapshot we're using
does (lts-20.10).

* Fix GHC 9.2.5 failing to install on Windows

* Use GHC 9.2.6 in place of 9.2.5 on Windows
  • Loading branch information
Minoru authored Mar 26, 2023
1 parent 999c51d commit 66ace43
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,24 @@ jobs:
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.4"
- "9.2.5"
exclude:
# fails to build: "can't load framework: Cocoa (not found)"
- os: macOS-11
ghc: 8.6.5
# fails to build: "can't load framework: Cocoa (not found)"
- os: macOS-11
ghc: 8.8.4
# haskell/actions/setup fails to install this version because of chocolatey: https://github.com/haskell/actions/issues/129
- os: windows-2022
ghc: 9.2.5
include:
# https://github.com/haskell/actions/issues/129 advises to use
# 9.2.5.1, but it's broken somehow too: GHC gets installed, but then
# chocolatey claims that "all install methods for ghc 9.2.5.1
# failed". So let's use the next big thing
- os: windows-2022
ghc: 9.2.6

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -70,8 +80,8 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
stack: ["2.9.1"]
ghc: ["9.0.2"]
stack: ["2.9.3"]
ghc: ["9.2.5"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -103,7 +113,7 @@ jobs:
strategy:
matrix:
cabal: ["3.6"]
ghc: ["9.2.4"]
ghc: ["9.2.5"]

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 66ace43

Please sign in to comment.