From eb430c3a310f704d1c4aa96b20c3cef6b5008c7b Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Sun, 24 Oct 2021 17:42:48 +0100 Subject: [PATCH] ci: Test with older GHC versions This should give us a warning that we need to bump the base lower bounds if we ever break old GHCs again. Related: https://github.com/xmonad/X11/issues/80 --- .github/workflows/haskell-ci.yml | 10 ++++++++-- X11.cabal | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index 6e6a616..93f42d5 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -46,6 +46,12 @@ jobs: allow-failure: false - compiler: ghc-8.4.4 allow-failure: false + - compiler: ghc-8.2.2 + allow-failure: false + - compiler: ghc-8.0.2 + allow-failure: false + - compiler: ghc-7.10.3 + allow-failure: false fail-fast: false steps: - name: apt @@ -146,8 +152,8 @@ jobs: touch cabal.project touch cabal.project.local echo "packages: ${PKGDIR_X11}" >> cabal.project - echo "package X11" >> cabal.project - echo " ghc-options: -Werror=missing-methods" >> cabal.project + if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package X11" >> cabal.project ; fi + if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi cat >> cabal.project < -tested-with: GHC == 8.4.4 || == 8.6.5 || == 8.8.4 || == 8.10.4 || == 9.0.1 +tested-with: GHC == 7.10.3 || == 8.0.2 || == 8.2.2 || == 8.4.4 || == 8.6.5 || == 8.8.4 || == 8.10.4 || == 9.0.1 category: Graphics homepage: https://github.com/xmonad/X11 bug-reports: https://github.com/xmonad/X11/issues