8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.16
11
+ # version: 0.17.20230826
12
12
#
13
- # REGENDATA ("0.16 ",["github","cabal.project","--allow-failures",">= 9.2","--distribution","focal"])
13
+ # REGENDATA ("0.17.20230826 ",["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.2 .7
35
+ - compiler : ghc-9.4 .7
36
36
compilerKind : ghc
37
- compilerVersion : 9.2.7
37
+ compilerVersion : 9.4.7
38
+ setup-method : ghcup
39
+ allow-failure : true
40
+ - compiler : ghc-9.2.8
41
+ compilerKind : ghc
42
+ compilerVersion : 9.2.8
38
43
setup-method : ghcup
39
44
allow-failure : true
40
45
- compiler : ghc-9.0.2
65
70
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
66
71
if [ "${{ matrix.setup-method }}" = ghcup ]; then
67
72
mkdir -p "$HOME/.ghcup/bin"
68
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
73
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
69
74
chmod a+x "$HOME/.ghcup/bin/ghcup"
70
75
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
71
76
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
74
79
apt-get update
75
80
apt-get install -y "$HCNAME"
76
81
mkdir -p "$HOME/.ghcup/bin"
77
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
82
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
78
83
chmod a+x "$HOME/.ghcup/bin/ghcup"
79
84
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
80
85
fi
@@ -90,10 +95,12 @@ jobs:
90
95
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
91
96
HCDIR=/opt/$HCKIND/$HCVER
92
97
if [ "${{ matrix.setup-method }}" = ghcup ]; then
93
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
98
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
99
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
100
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
94
101
echo "HC=$HC" >> "$GITHUB_ENV"
95
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
96
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
102
+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
103
+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
97
104
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
98
105
else
99
106
HC=$HCDIR/bin/$HCKIND
@@ -243,16 +250,28 @@ jobs:
243
250
- name : prepare for constraint sets
244
251
run : |
245
252
rm -f cabal.project.local
253
+ - name : constraint set servant-0.20
254
+ 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
246
259
- name : constraint set servant-0.19
247
260
run : |
261
+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all --dry-run
262
+ cabal-plan topo | sort
248
263
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' --dependencies-only -j2 all
249
264
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.19.*' all
250
265
- name : constraint set servant-0.18
251
266
run : |
267
+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' all --dry-run ; fi
268
+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
252
269
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' --dependencies-only -j2 all ; fi
253
270
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.18.*' all ; fi
254
271
- name : constraint set servant-0.17
255
272
run : |
273
+ if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all --dry-run ; fi
274
+ if [ $((HCNUMVER < 81000)) -ne 0 ] ; then cabal-plan topo | sort ; fi
256
275
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' --dependencies-only -j2 all ; fi
257
276
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all ; fi
258
277
- name : save cache
0 commit comments