Skip to content

Commit

Permalink
CI: GHC 9.2.5 → 9.2.7, add GHC 9.4.4 (jaspervdj#980)
Browse files Browse the repository at this point in the history
The "stack" CI job wasn't updated because we want the compiler to match
the Stackage snapshot.

Also bump Cabal to 3.8 to avoid the following error on Windows with GHC
9.4.4:

    Building library for JuicyPixels-3.3.8..
    (snip)
    [ 6 of 30] Compiling Codec.Picture.Types ( src\Codec\Picture\Types.hs, dist\build\Codec\Picture\Types.o )
    ghc-9.4.4.exe: C:\sr\ghc-9.4.4\zlib-0.6.3.0-b93e42dc6c387b7136aeb178f9efa1886c66c11e\lib\libHSzlib-0.6.3.0-b93e42dc6c387b7136aeb178f9efa1886c66c11e.a(jaspervdj#6:Stream.o): Not a x86_64 PE+ file.
    ghc-9.4.4.exe: Unknown COFF 4 type in getHeaderInfo.

See https://gitlab.haskell.org/ghc/ghc/-/issues/21990.

Cabal version has to be specified in its entirety because
actions/haskell can't install "3.8" for some reason.
  • Loading branch information
Minoru authored Apr 3, 2023
1 parent f9f99be commit 3cf690f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, macOS-12, windows-2022]
cabal: ["3.6"]
cabal: ["3.8.1.0"]
ghc:
- "8.6.5"
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.5"
- "9.2.7"
- "9.4.4"
exclude:
# fails to build: "can't load framework: Cocoa (not found)"
- os: macOS-12
ghc: 8.6.5
ghc: "8.6.5"
# fails to build: "can't load framework: Cocoa (not found)"
- os: macOS-12
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
ghc: "8.8.4"

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -81,7 +72,7 @@ jobs:
strategy:
matrix:
stack: ["2.9.3"]
ghc: ["9.2.5"]
ghc: ["9.2.5"] # We want this to match the Stackage snapshot in stack.yaml

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

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: 'lts-20.10'
resolver: 'lts-20.10' # If you change this, please update GHC version "stack / ghc" job in .github/workflows/main.yaml
save-hackage-creds: false
system-ghc: true
skip-ghc-check: true
Expand Down

0 comments on commit 3cf690f

Please sign in to comment.