8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.17.20230826
11
+ # version: 0.17.20231203
12
12
#
13
- # REGENDATA ("0.17.20230826 ",["github","cabal.project","--allow-failures",">= 9.2","--distribution","focal"])
13
+ # REGENDATA ("0.17.20231203 ",["github","cabal.project","--allow-failures",">= 9.2","--distribution","focal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.4.7
35
+ - compiler : ghc-9.8.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.4.7
37
+ compilerVersion : 9.8.1
38
+ setup-method : ghcup
39
+ allow-failure : true
40
+ - compiler : ghc-9.6.3
41
+ compilerKind : ghc
42
+ compilerVersion : 9.6.3
43
+ setup-method : ghcup
44
+ allow-failure : true
45
+ - compiler : ghc-9.4.8
46
+ compilerKind : ghc
47
+ compilerVersion : 9.4.8
38
48
setup-method : ghcup
39
49
allow-failure : true
40
50
- compiler : ghc-9.2.8
@@ -70,18 +80,18 @@ jobs:
70
80
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
71
81
if [ "${{ matrix.setup-method }}" = ghcup ]; then
72
82
mkdir -p "$HOME/.ghcup/bin"
73
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
83
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
74
84
chmod a+x "$HOME/.ghcup/bin/ghcup"
75
85
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
76
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
86
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
77
87
else
78
88
apt-add-repository -y 'ppa:hvr/ghc'
79
89
apt-get update
80
90
apt-get install -y "$HCNAME"
81
91
mkdir -p "$HOME/.ghcup/bin"
82
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
92
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
83
93
chmod a+x "$HOME/.ghcup/bin/ghcup"
84
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
94
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
85
95
fi
86
96
env :
87
97
HCKIND : ${{ matrix.compilerKind }}
@@ -101,13 +111,13 @@ jobs:
101
111
echo "HC=$HC" >> "$GITHUB_ENV"
102
112
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
103
113
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
104
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
114
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
105
115
else
106
116
HC=$HCDIR/bin/$HCKIND
107
117
echo "HC=$HC" >> "$GITHUB_ENV"
108
118
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
109
119
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
110
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
120
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
111
121
fi
112
122
113
123
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -252,16 +262,16 @@ jobs:
252
262
rm -f cabal.project.local
253
263
- name : constraint set servant-0.20
254
264
run : |
255
- $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all --dry-run
256
- cabal-plan topo | sort
257
- $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' --dependencies-only -j2 all
258
- $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all
265
+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all --dry-run ; fi
266
+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
267
+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' --dependencies-only -j2 all ; fi
268
+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.20.*' all ; fi
259
269
- name : constraint set servant-0.19
260
270
run : |
261
- $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all --dry-run
262
- cabal-plan topo | sort
263
- $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' --dependencies-only -j2 all
264
- $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all
271
+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all --dry-run ; fi
272
+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then cabal-plan topo | sort ; fi
273
+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' --dependencies-only -j2 all ; fi
274
+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all ; fi
265
275
- name : constraint set servant-0.18
266
276
run : |
267
277
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' all --dry-run ; fi
0 commit comments