From 3cf690f89e6f24652dbda640e571672b67d9c234 Mon Sep 17 00:00:00 2001 From: Alexander Batischev Date: Mon, 3 Apr 2023 22:11:06 +0300 Subject: [PATCH] =?UTF-8?q?CI:=20GHC=209.2.5=20=E2=86=92=209.2.7,=20add=20?= =?UTF-8?q?GHC=209.4.4=20(#980)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/main.yml | 23 +++++++---------------- stack.yaml | 2 +- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e72fbf31..8b8baf0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -113,7 +104,7 @@ jobs: strategy: matrix: cabal: ["3.6"] - ghc: ["9.2.5"] + ghc: ["9.2.7"] steps: - uses: actions/checkout@v2 diff --git a/stack.yaml b/stack.yaml index c794ed3a..ddafa89c 100644 --- a/stack.yaml +++ b/stack.yaml @@ -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