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.17.20231110
12
12
#
13
- # REGENDATA ("0.16.3 ",["github","cabal.project"])
13
+ # REGENDATA ("0.17.20231110 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,19 +32,24 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.6 .1
35
+ - compiler : ghc-9.8 .1
36
36
compilerKind : ghc
37
- compilerVersion : 9.6 .1
37
+ compilerVersion : 9.8 .1
38
38
setup-method : ghcup
39
39
allow-failure : true
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
43
setup-method : ghcup
44
44
allow-failure : true
45
- - compiler : ghc-9.2.7
45
+ - compiler : ghc-9.4.8
46
46
compilerKind : ghc
47
- compilerVersion : 9.2.7
47
+ compilerVersion : 9.4.8
48
+ setup-method : ghcup
49
+ allow-failure : true
50
+ - compiler : ghc-9.2.8
51
+ compilerKind : ghc
52
+ compilerVersion : 9.2.8
48
53
setup-method : ghcup
49
54
allow-failure : true
50
55
- compiler : ghc-9.0.2
@@ -80,18 +85,18 @@ jobs:
80
85
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
81
86
if [ "${{ matrix.setup-method }}" = ghcup ]; then
82
87
mkdir -p "$HOME/.ghcup/bin"
83
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
88
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
84
89
chmod a+x "$HOME/.ghcup/bin/ghcup"
85
90
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
86
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
91
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
87
92
else
88
93
apt-add-repository -y 'ppa:hvr/ghc'
89
94
apt-get update
90
95
apt-get install -y "$HCNAME"
91
96
mkdir -p "$HOME/.ghcup/bin"
92
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
97
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
93
98
chmod a+x "$HOME/.ghcup/bin/ghcup"
94
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
99
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95
100
fi
96
101
env :
97
102
HCKIND : ${{ matrix.compilerKind }}
@@ -105,17 +110,19 @@ jobs:
105
110
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
106
111
HCDIR=/opt/$HCKIND/$HCVER
107
112
if [ "${{ matrix.setup-method }}" = ghcup ]; then
108
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
113
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
114
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
115
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
109
116
echo "HC=$HC" >> "$GITHUB_ENV"
110
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
111
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
112
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
117
+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
118
+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
119
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
113
120
else
114
121
HC=$HCDIR/bin/$HCKIND
115
122
echo "HC=$HC" >> "$GITHUB_ENV"
116
123
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
117
124
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
118
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
125
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
119
126
fi
120
127
121
128
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -244,10 +251,14 @@ jobs:
244
251
rm -f cabal.project.local
245
252
- name : constraint set aeson-2
246
253
run : |
254
+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson >=2.0' all --dry-run
255
+ cabal-plan topo | sort
247
256
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson >=2.0' --dependencies-only -j2 all
248
257
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson >=2.0' all
249
258
- name : constraint set aeson-1
250
259
run : |
260
+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson <2.0' all --dry-run ; fi
261
+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
251
262
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson <2.0' --dependencies-only -j2 all ; fi
252
263
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson <2.0' all ; fi
253
264
- name : save cache
0 commit comments