Skip to content

Commit

Permalink
CI: GHC 9.2.5 → 9.2.7, add GHC 9.4.4
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(#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.
  • Loading branch information
Minoru committed Apr 2, 2023
1 parent f9f99be commit 44170e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
27 changes: 9 additions & 18 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"]
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
- os: macOS-11
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
- os: macOS-11
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 44170e1

Please sign in to comment.