8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.17.20231010
11
+ # version: 0.19.20240702
12
12
#
13
- # REGENDATA ("0.17.20231010 ",["github","text-builder-linear.cabal"])
13
+ # REGENDATA ("0.19.20240702 ",["github","text-builder-linear.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -23,24 +23,29 @@ jobs:
23
23
timeout-minutes :
24
24
60
25
25
container :
26
- image : buildpack-deps:bionic
26
+ image : buildpack-deps:jammy
27
27
continue-on-error : ${{ matrix.allow-failure }}
28
28
strategy :
29
29
matrix :
30
30
include :
31
- - compiler : ghc-9.8 .1
31
+ - compiler : ghc-9.10 .1
32
32
compilerKind : ghc
33
- compilerVersion : 9.8 .1
33
+ compilerVersion : 9.10 .1
34
34
setup-method : ghcup
35
35
allow-failure : false
36
- - compiler : ghc-9.6.3
36
+ - compiler : ghc-9.8.2
37
37
compilerKind : ghc
38
- compilerVersion : 9.6.3
38
+ compilerVersion : 9.8.2
39
39
setup-method : ghcup
40
40
allow-failure : false
41
- - compiler : ghc-9.4.7
41
+ - compiler : ghc-9.6.6
42
42
compilerKind : ghc
43
- compilerVersion : 9.4.7
43
+ compilerVersion : 9.6.6
44
+ setup-method : ghcup
45
+ allow-failure : false
46
+ - compiler : ghc-9.4.8
47
+ compilerKind : ghc
48
+ compilerVersion : 9.4.8
44
49
setup-method : ghcup
45
50
allow-failure : false
46
51
- compiler : ghc-9.2.8
@@ -55,10 +60,10 @@ jobs:
55
60
apt-get update
56
61
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
57
62
mkdir -p "$HOME/.ghcup/bin"
58
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
63
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
59
64
chmod a+x "$HOME/.ghcup/bin/ghcup"
60
65
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
61
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10 .1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
66
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12 .1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
62
67
env :
63
68
HCKIND : ${{ matrix.compilerKind }}
64
69
HCNAME : ${{ matrix.compiler }}
76
81
echo "HC=$HC" >> "$GITHUB_ENV"
77
82
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
78
83
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
79
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10 .1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
84
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12 .1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
80
85
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
81
86
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
82
87
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -133,7 +138,7 @@ jobs:
133
138
chmod a+x $HOME/.cabal/bin/cabal-plan
134
139
cabal-plan --version
135
140
- name : checkout
136
- uses : actions/checkout@v3
141
+ uses : actions/checkout@v4
137
142
with :
138
143
path : source
139
144
- name : initial cabal.project for sdist
@@ -161,15 +166,15 @@ jobs:
161
166
echo " ghc-options: -Werror=missing-methods" >> cabal.project
162
167
cat >> cabal.project <<EOF
163
168
EOF
164
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(text|text-builder-linear)$/; }' >> cabal.project.local
169
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(text|text-builder-linear)$/; }' >> cabal.project.local
165
170
cat cabal.project
166
171
cat cabal.project.local
167
172
- name : dump install plan
168
173
run : |
169
174
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
170
175
cabal-plan
171
176
- name : restore cache
172
- uses : actions/cache/restore@v3
177
+ uses : actions/cache/restore@v4
173
178
with :
174
179
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
175
180
path : ~/.cabal/store
@@ -199,7 +204,7 @@ jobs:
199
204
rm -f cabal.project.local
200
205
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
201
206
- name : save cache
202
- uses : actions/cache/save@v3
207
+ uses : actions/cache/save@v4
203
208
if : always()
204
209
with :
205
210
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments