8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.16.3
11
+ # version: 0.19.20250115
12
12
#
13
- # REGENDATA ("0.16.3 ",["github","servant-blaze.cabal","--allow-failures",">= 9.2","--distribution","focal"])
13
+ # REGENDATA ("0.19.20250115 ",["github","servant-blaze.cabal","--allow-failures",">= 9.2","--distribution","focal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,19 +32,29 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.6.2
35
+ - compiler : ghc-9.10.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.6.2
37
+ compilerVersion : 9.10.1
38
38
setup-method : ghcup
39
39
allow-failure : true
40
- - compiler : ghc-9.4.5
40
+ - compiler : ghc-9.8.4
41
41
compilerKind : ghc
42
- compilerVersion : 9.4.5
42
+ compilerVersion : 9.8.4
43
43
setup-method : ghcup
44
44
allow-failure : true
45
- - compiler : ghc-9.2.7
45
+ - compiler : ghc-9.6.6
46
46
compilerKind : ghc
47
- compilerVersion : 9.2.7
47
+ compilerVersion : 9.6.6
48
+ setup-method : ghcup
49
+ allow-failure : true
50
+ - compiler : ghc-9.4.8
51
+ compilerKind : ghc
52
+ compilerVersion : 9.4.8
53
+ setup-method : ghcup
54
+ allow-failure : true
55
+ - compiler : ghc-9.2.8
56
+ compilerKind : ghc
57
+ compilerVersion : 9.2.8
48
58
setup-method : ghcup
49
59
allow-failure : true
50
60
- compiler : ghc-9.0.2
@@ -60,34 +70,38 @@ jobs:
60
70
- compiler : ghc-8.8.4
61
71
compilerKind : ghc
62
72
compilerVersion : 8.8.4
63
- setup-method : hvr-ppa
73
+ setup-method : ghcup
64
74
allow-failure : false
65
75
- compiler : ghc-8.6.5
66
76
compilerKind : ghc
67
77
compilerVersion : 8.6.5
68
- setup-method : hvr-ppa
78
+ setup-method : ghcup
69
79
allow-failure : false
70
80
fail-fast : false
71
81
steps :
72
- - name : apt
82
+ - name : apt-get install
73
83
run : |
74
84
apt-get update
75
85
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
76
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
77
- mkdir -p "$HOME/.ghcup/bin"
78
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
79
- chmod a+x "$HOME/.ghcup/bin/ghcup"
80
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
81
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
82
- else
83
- apt-add-repository -y 'ppa:hvr/ghc'
84
- apt-get update
85
- apt-get install -y "$HCNAME"
86
- mkdir -p "$HOME/.ghcup/bin"
87
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
88
- chmod a+x "$HOME/.ghcup/bin/ghcup"
89
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
90
- fi
86
+ - name : Install GHCup
87
+ run : |
88
+ mkdir -p "$HOME/.ghcup/bin"
89
+ curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
90
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
91
+ - name : Install cabal-install
92
+ run : |
93
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
94
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
95
+ - name : Install GHC (GHCup)
96
+ if : matrix.setup-method == 'ghcup'
97
+ run : |
98
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
99
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
100
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
101
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
102
+ echo "HC=$HC" >> "$GITHUB_ENV"
103
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
104
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
91
105
env :
92
106
HCKIND : ${{ matrix.compilerKind }}
93
107
HCNAME : ${{ matrix.compiler }}
@@ -98,28 +112,12 @@ jobs:
98
112
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
99
113
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
100
114
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
101
- HCDIR=/opt/$HCKIND/$HCVER
102
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
103
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
104
- echo "HC=$HC" >> "$GITHUB_ENV"
105
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
106
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
107
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
108
- else
109
- HC=$HCDIR/bin/$HCKIND
110
- echo "HC=$HC" >> "$GITHUB_ENV"
111
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
112
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
113
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
114
- fi
115
-
116
115
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
117
116
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
118
117
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
119
118
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
120
119
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
121
120
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
122
- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
123
121
env :
124
122
HCKIND : ${{ matrix.compilerKind }}
125
123
HCNAME : ${{ matrix.compiler }}
@@ -169,7 +167,7 @@ jobs:
169
167
chmod a+x $HOME/.cabal/bin/cabal-plan
170
168
cabal-plan --version
171
169
- name : checkout
172
- uses : actions/checkout@v3
170
+ uses : actions/checkout@v4
173
171
with :
174
172
path : source
175
173
- name : initial cabal.project for sdist
@@ -197,15 +195,15 @@ jobs:
197
195
echo " ghc-options: -Werror=missing-methods" >> cabal.project
198
196
cat >> cabal.project <<EOF
199
197
EOF
200
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(servant-blaze)$/; }' >> cabal.project.local
198
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(servant-blaze)$/; }' >> cabal.project.local
201
199
cat cabal.project
202
200
cat cabal.project.local
203
201
- name : dump install plan
204
202
run : |
205
203
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
206
204
cabal-plan
207
205
- name : restore cache
208
- uses : actions/cache/restore@v3
206
+ uses : actions/cache/restore@v4
209
207
with :
210
208
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
211
209
path : ~/.cabal/store
@@ -239,27 +237,37 @@ jobs:
239
237
rm -f cabal.project.local
240
238
- name : constraint set servant-0.20
241
239
run : |
242
- if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' --dependencies-only -j2 all ; fi
243
- if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all ; fi
240
+ if [ $((HCNUMVER >= 81000 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all --dry-run ; fi
241
+ if [ $((HCNUMVER >= 81000 && HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
242
+ if [ $((HCNUMVER >= 81000 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' --dependencies-only -j2 all ; fi
243
+ if [ $((HCNUMVER >= 81000 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all ; fi
244
244
- name : constraint set servant-0.19
245
245
run : |
246
+ if [ $((HCNUMVER >= 80800 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all --dry-run ; fi
247
+ if [ $((HCNUMVER >= 80800 && HCNUMVER < 90600)) -ne 0 ] ; then cabal-plan topo | sort ; fi
246
248
if [ $((HCNUMVER >= 80800 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' --dependencies-only -j2 all ; fi
247
249
if [ $((HCNUMVER >= 80800 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all ; fi
248
250
- name : constraint set servant-0.18
249
251
run : |
252
+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' all --dry-run ; fi
253
+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
250
254
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' --dependencies-only -j2 all ; fi
251
255
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' all ; fi
252
256
- name : constraint set servant-0.17
253
257
run : |
258
+ if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all --dry-run ; fi
259
+ if [ $((HCNUMVER < 81000)) -ne 0 ] ; then cabal-plan topo | sort ; fi
254
260
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' --dependencies-only -j2 all ; fi
255
261
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all ; fi
256
262
- name : constraint set servant-0.16
257
263
run : |
264
+ if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.16.*' all --dry-run ; fi
265
+ if [ $((HCNUMVER < 81000)) -ne 0 ] ; then cabal-plan topo | sort ; fi
258
266
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.16.*' --dependencies-only -j2 all ; fi
259
267
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.16.*' all ; fi
260
268
- name : save cache
261
- uses : actions/cache/save@v3
262
269
if : always()
270
+ uses : actions/cache/save@v4
263
271
with :
264
272
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
265
273
path : ~/.cabal/store
0 commit comments