From 45308bfaafa41d16dee974c0304e352321269f94 Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Tue, 30 Jan 2024 20:20:16 +0000 Subject: [PATCH] Add GHC 7.10 CI jobs for Windows and macOS --- .github/workflows/other.yml | 3 ++- zlib.cabal | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/other.yml b/.github/workflows/other.yml index acc9dcb..40fe21e 100644 --- a/.github/workflows/other.yml +++ b/.github/workflows/other.yml @@ -14,7 +14,7 @@ jobs: fail-fast: true matrix: os: [windows-latest, macOS-latest] - ghc: ['latest'] + ghc: ['7.10', 'latest'] steps: - uses: actions/checkout@v4 - uses: haskell-actions/setup@v2 @@ -36,6 +36,7 @@ jobs: cd zlib-*/ cabal build - name: Haddock + if: matrix.ghc != '7.10' run: | cd zlib-*/ cabal haddock diff --git a/zlib.cabal b/zlib.cabal index bf66684..222badf 100644 --- a/zlib.cabal +++ b/zlib.cabal @@ -90,6 +90,8 @@ library bytestring >= 0.9 && < 0.13 build-tools: hsc2hs >= 0.67 && < 0.69 + if os(windows) && impl(ghc < 8) + build-tools: hsc2hs < 0.68.5 -- GHC 7 ships hsc2hs-0.67 -- use `includes:` to include them when compiling