8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.18.1
11
+ # version: 0.19.20240708
12
12
#
13
- # REGENDATA ("0.18.1 ",["github","ekg-statsd.cabal"])
13
+ # REGENDATA ("0.19.20240708 ",["github","ekg-statsd.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -28,11 +28,21 @@ jobs:
28
28
strategy :
29
29
matrix :
30
30
include :
31
+ - compiler : ghc-9.10.1
32
+ compilerKind : ghc
33
+ compilerVersion : 9.10.1
34
+ setup-method : ghcup
35
+ allow-failure : false
31
36
- compiler : ghc-9.8.2
32
37
compilerKind : ghc
33
38
compilerVersion : 9.8.2
34
39
setup-method : ghcup
35
40
allow-failure : false
41
+ - compiler : ghc-9.6.6
42
+ compilerKind : ghc
43
+ compilerVersion : 9.6.6
44
+ setup-method : ghcup
45
+ allow-failure : false
36
46
- compiler : ghc-9.6.4
37
47
compilerKind : ghc
38
48
compilerVersion : 9.6.4
@@ -90,10 +100,10 @@ jobs:
90
100
apt-get update
91
101
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
92
102
mkdir -p "$HOME/.ghcup/bin"
93
- curl -sL https://downloads.haskell.org/ghcup/0.1.20 .0/x86_64-linux-ghcup-0.1.20 .0 > "$HOME/.ghcup/bin/ghcup"
103
+ curl -sL https://downloads.haskell.org/ghcup/0.1.30 .0/x86_64-linux-ghcup-0.1.30 .0 > "$HOME/.ghcup/bin/ghcup"
94
104
chmod a+x "$HOME/.ghcup/bin/ghcup"
95
105
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
96
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
97
107
env :
98
108
HCKIND : ${{ matrix.compilerKind }}
99
109
HCNAME : ${{ matrix.compiler }}
@@ -111,7 +121,7 @@ jobs:
111
121
echo "HC=$HC" >> "$GITHUB_ENV"
112
122
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
113
123
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
114
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
124
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
115
125
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
116
126
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
117
127
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -168,7 +178,7 @@ jobs:
168
178
chmod a+x $HOME/.cabal/bin/cabal-plan
169
179
cabal-plan --version
170
180
- name : checkout
171
- uses : actions/checkout@v3
181
+ uses : actions/checkout@v4
172
182
with :
173
183
path : source
174
184
- name : initial cabal.project for sdist
@@ -196,15 +206,15 @@ jobs:
196
206
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
197
207
cat >> cabal.project <<EOF
198
208
EOF
199
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(ekg-statsd)$/; }' >> cabal.project.local
209
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(ekg-statsd)$/; }' >> cabal.project.local
200
210
cat cabal.project
201
211
cat cabal.project.local
202
212
- name : dump install plan
203
213
run : |
204
214
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
205
215
cabal-plan
206
216
- name : restore cache
207
- uses : actions/cache/restore@v3
217
+ uses : actions/cache/restore@v4
208
218
with :
209
219
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
210
220
path : ~/.cabal/store
@@ -231,7 +241,7 @@ jobs:
231
241
rm -f cabal.project.local
232
242
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
233
243
- name : save cache
234
- uses : actions/cache/save@v3
244
+ uses : actions/cache/save@v4
235
245
if : always()
236
246
with :
237
247
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments