Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: GHC 9.2.5 → 9.2.7, add GHC 9.4.4 #980

Merged
merged 1 commit into from
Apr 3, 2023
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
CI: GHC 9.2.5 → 9.2.7, add GHC 9.4.4
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.

Cabal version has to be specified in its entirety because
actions/haskell can't install "3.8" for some reason.
  • Loading branch information
Minoru committed Apr 2, 2023
commit 7726bc5c64fb2f8d97a20d95c31e589c5b29f511
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