Skip to content

Commit 1c4d659

Browse files
committed
Bump Haskell CI to GHC 9.12.0
1 parent 098fdd1 commit 1c4d659

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.19.20240703
11+
# version: 0.19.20241111
1212
#
13-
# REGENDATA ("0.19.20240703",["github","fix-whitespace.cabal"])
13+
# REGENDATA ("0.19.20241111",["github","fix-whitespace.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,6 +32,11 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35+
- compiler: ghc-9.12.0.20241031
36+
compilerKind: ghc
37+
compilerVersion: 9.12.0.20241031
38+
setup-method: ghcup
39+
allow-failure: false
3540
- compiler: ghc-9.10.1
3641
compilerKind: ghc
3742
compilerVersion: 9.10.1
@@ -99,8 +104,9 @@ jobs:
99104
apt-get update
100105
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101106
mkdir -p "$HOME/.ghcup/bin"
102-
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
107+
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
103108
chmod a+x "$HOME/.ghcup/bin/ghcup"
109+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
104110
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
105111
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106112
env:
@@ -125,7 +131,7 @@ jobs:
125131
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
126132
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
127133
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
128-
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
134+
if [ $((HCNUMVER >= 91200)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
129135
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
130136
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
131137
env:
@@ -154,6 +160,18 @@ jobs:
154160
repository hackage.haskell.org
155161
url: http://hackage.haskell.org/
156162
EOF
163+
if $HEADHACKAGE; then
164+
cat >> $CABAL_CONFIG <<EOF
165+
repository head.hackage.ghc.haskell.org
166+
url: https://ghc.gitlab.haskell.org/head.hackage/
167+
secure: True
168+
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
169+
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
170+
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
171+
key-threshold: 3
172+
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
173+
EOF
174+
fi
157175
cat >> $CABAL_CONFIG <<EOF
158176
program-default-options
159177
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -205,6 +223,9 @@ jobs:
205223
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
206224
cat >> cabal.project <<EOF
207225
EOF
226+
if $HEADHACKAGE; then
227+
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
228+
fi
208229
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(fix-whitespace)$/; }' >> cabal.project.local
209230
cat cabal.project
210231
cat cabal.project.local

fix-whitespace.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ bug-reports: https://github.com/agda/fix-whitespace/issues
1616

1717
tested-with:
1818
-- cabal-supported GHCs
19+
GHC == 9.12.0
1920
GHC == 9.10.1
2021
GHC == 9.8.2
2122
GHC == 9.6.6

0 commit comments

Comments
 (0)