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