From 270ce1dc97643427ecde8a5e48b03e15ec28f2f2 Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Sat, 18 Nov 2023 06:54:12 +0800 Subject: [PATCH] CI: work around haskell/hsc2hs#81: restrict to hsc2hs<0.68.10 for GHC<8.4 --- .github/workflows/win.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index 6c9b64c..6c9b862 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -18,6 +18,13 @@ jobs: - uses: haskell-actions/setup@v2 with: ghc-version: ${{ matrix.ghc }} + + - name: "Work around haskell/hsc2hs#81: hsc2hs-0.68.10 fails to build with GHC < 8.4" + if: matrix.ghc < 8.4 + run: | + echo "constraints: any.hsc2hs < 0.68.10" > cabal.project.local + shell: bash + - run: cabal build - run: cabal haddock - run: cabal check