Skip to content

Commit 9b86ed8

Browse files
committed
Bump CI to GHC 9.10.1
1 parent 19350e4 commit 9b86ed8

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 20 additions & 16 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.17.20231012
11+
# version: 0.19.20240630
1212
#
13-
# REGENDATA ("0.17.20231012",["github","happstack-server.cabal"])
13+
# REGENDATA ("0.19.20240630",["github","happstack-server.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -27,24 +27,29 @@ jobs:
2727
timeout-minutes:
2828
60
2929
container:
30-
image: buildpack-deps:focal
30+
image: buildpack-deps:jammy
3131
continue-on-error: ${{ matrix.allow-failure }}
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.8.1
35+
- compiler: ghc-9.10.1
3636
compilerKind: ghc
37-
compilerVersion: 9.8.1
37+
compilerVersion: 9.10.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.6.3
40+
- compiler: ghc-9.8.2
4141
compilerKind: ghc
42-
compilerVersion: 9.6.3
42+
compilerVersion: 9.8.2
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.4.7
45+
- compiler: ghc-9.6.5
4646
compilerKind: ghc
47-
compilerVersion: 9.4.7
47+
compilerVersion: 9.6.5
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.4.8
51+
compilerKind: ghc
52+
compilerVersion: 9.4.8
4853
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-9.2.8
@@ -94,11 +99,10 @@ jobs:
9499
apt-get update
95100
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
96101
mkdir -p "$HOME/.ghcup/bin"
97-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
102+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
98103
chmod a+x "$HOME/.ghcup/bin/ghcup"
99-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
100104
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
102106
env:
103107
HCKIND: ${{ matrix.compilerKind }}
104108
HCNAME: ${{ matrix.compiler }}
@@ -116,7 +120,7 @@ jobs:
116120
echo "HC=$HC" >> "$GITHUB_ENV"
117121
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118122
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
119-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
123+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
120124
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
121125
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
122126
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -201,15 +205,15 @@ jobs:
201205
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
202206
cat >> cabal.project <<EOF
203207
EOF
204-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(happstack-server)$/; }' >> cabal.project.local
208+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(happstack-server)$/; }' >> cabal.project.local
205209
cat cabal.project
206210
cat cabal.project.local
207211
- name: dump install plan
208212
run: |
209213
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
210214
cabal-plan
211215
- name: restore cache
212-
uses: actions/cache/restore@v3
216+
uses: actions/cache/restore@v4
213217
with:
214218
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
215219
path: ~/.cabal/store
@@ -239,7 +243,7 @@ jobs:
239243
rm -f cabal.project.local
240244
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
241245
- name: save cache
242-
uses: actions/cache/save@v3
246+
uses: actions/cache/save@v4
243247
if: always()
244248
with:
245249
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}

happstack-server.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Cabal-Version: >= 1.10
1313
Extra-Source-Files: tests/Happstack/Server/Tests.hs README.md
1414

1515
tested-with:
16-
GHC == 9.8.1
17-
GHC == 9.6.3
18-
GHC == 9.4.7
16+
GHC == 9.10.1
17+
GHC == 9.8.2
18+
GHC == 9.6.5
19+
GHC == 9.4.8
1920
GHC == 9.2.8
2021
GHC == 9.0.2
2122
GHC == 8.10.7

0 commit comments

Comments
 (0)