Skip to content

Commit 6bb7c3c

Browse files
committed
CI: Test GHC 9.14.1
1 parent 08e8034 commit 6bb7c3c

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 23 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.20251211
11+
# version: 0.19.20260102
1212
#
13-
# REGENDATA ("0.19.20251211",["github","cabal.project"])
13+
# REGENDATA ("0.19.20260102",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -29,6 +29,11 @@ jobs:
2929
strategy:
3030
matrix:
3131
include:
32+
- compiler: ghc-9.14.1
33+
compilerKind: ghc
34+
compilerVersion: 9.14.1
35+
setup-method: ghcup
36+
allow-failure: false
3237
- compiler: ghc-9.12.2
3338
compilerKind: ghc
3439
compilerVersion: 9.12.2
@@ -133,7 +138,7 @@ jobs:
133138
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
134139
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
135140
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
136-
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
141+
if [ $((HCNUMVER >= 91400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
137142
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
138143
env:
139144
HCKIND: ${{ matrix.compilerKind }}
@@ -161,6 +166,18 @@ jobs:
161166
repository hackage.haskell.org
162167
url: http://hackage.haskell.org/
163168
EOF
169+
if $HEADHACKAGE; then
170+
cat >> $CABAL_CONFIG <<EOF
171+
repository head.hackage.ghc.haskell.org
172+
url: https://ghc.gitlab.haskell.org/head.hackage/
173+
secure: True
174+
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
175+
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
176+
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
177+
key-threshold: 3
178+
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
179+
EOF
180+
fi
164181
cat >> $CABAL_CONFIG <<EOF
165182
jobs: 2
166183
EOF
@@ -229,6 +246,9 @@ jobs:
229246
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project ; fi
230247
cat >> cabal.project <<EOF
231248
EOF
249+
if $HEADHACKAGE; then
250+
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
251+
fi
232252
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(transformers-compat|transformers-compat-tests)$/; }' >> cabal.project.local
233253
cat cabal.project
234254
cat cabal.project.local

tests/transformers-compat-tests.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tested-with: GHC == 8.0.2
2626
, GHC == 9.8.4
2727
, GHC == 9.10.3
2828
, GHC == 9.12.2
29+
, GHC == 9.14.1
2930

3031
source-repository head
3132
type: git

transformers-compat.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ tested-with: GHC == 8.0.2
3535
, GHC == 9.8.4
3636
, GHC == 9.10.3
3737
, GHC == 9.12.2
38+
, GHC == 9.14.1
3839
extra-source-files:
3940
.ghci
4041
.gitignore

0 commit comments

Comments
 (0)