Skip to content

Commit 69c804b

Browse files
committed
Update CI code for github to run tests with ghc 9.10.x and 9.12.x.
1 parent 5012bdd commit 69c804b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20250604
11+
# version: 0.19.20250722
1212
#
13-
# REGENDATA ("0.19.20250604",["--doctest","--doctest-version=^>= 0.22","--installed=+all -Cabal","github","cabal2spec.cabal"])
13+
# REGENDATA ("0.19.20250722",["--doctest","--doctest-version=^>= 0.22","--installed=+all -Cabal","github","cabal2spec.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -28,6 +28,16 @@ jobs:
2828
strategy:
2929
matrix:
3030
include:
31+
- compiler: ghc-9.12.2
32+
compilerKind: ghc
33+
compilerVersion: 9.12.2
34+
setup-method: ghcup
35+
allow-failure: false
36+
- compiler: ghc-9.10.2
37+
compilerKind: ghc
38+
compilerVersion: 9.10.2
39+
setup-method: ghcup
40+
allow-failure: false
3141
- compiler: ghc-9.8.4
3242
compilerKind: ghc
3343
compilerVersion: 9.8.4
@@ -178,7 +188,11 @@ jobs:
178188
touch cabal.project.local
179189
echo "packages: ${PKGDIR_cabal2spec}" >> cabal.project
180190
echo "package cabal2spec" >> cabal.project
181-
echo " ghc-options: -Werror=missing-methods" >> cabal.project
191+
echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project
192+
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package cabal2spec" >> cabal.project ; fi
193+
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
194+
echo "package cabal2spec" >> cabal.project
195+
echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project
182196
cat >> cabal.project <<EOF
183197
EOF
184198
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(Cabal|cabal2spec)$/; }' >> cabal.project.local

cabal2spec.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ license: GPL-3
1414
license-file: LICENSE
1515
author: Peter Simons, Bryan O'Sullivan, Jens Petersen
1616
maintainer: simons@cryp.to
17-
tested-with: GHC == 9.2.8 || == 9.4.8 || == 9.6.7 || == 9.8.4
17+
tested-with: GHC == 9.2.8 || == 9.4.8 || == 9.6.7 || == 9.8.4 || == 9.10.2 || == 9.12.2
1818
category: Distribution
1919
homepage: https://github.com/peti/cabal2spec
2020
build-type: Simple

0 commit comments

Comments
 (0)