88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.16
11+ # version: 0.17.20231010
1212#
13- # REGENDATA ("0.16 ",["github","cabal.project"])
13+ # REGENDATA ("0.17.20231010 ",["github","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -32,19 +32,24 @@ jobs:
3232 strategy :
3333 matrix :
3434 include :
35- - compiler : ghc-9.6 .1
35+ - compiler : ghc-9.8 .1
3636 compilerKind : ghc
37- compilerVersion : 9.6 .1
37+ compilerVersion : 9.8 .1
3838 setup-method : ghcup
3939 allow-failure : false
40- - compiler : ghc-9.4.4
40+ - compiler : ghc-9.6.3
4141 compilerKind : ghc
42- compilerVersion : 9.4.4
42+ compilerVersion : 9.6.3
4343 setup-method : ghcup
4444 allow-failure : false
45- - compiler : ghc-9.2 .7
45+ - compiler : ghc-9.4 .7
4646 compilerKind : ghc
47- compilerVersion : 9.2.7
47+ compilerVersion : 9.4.7
48+ setup-method : ghcup
49+ allow-failure : false
50+ - compiler : ghc-9.2.8
51+ compilerKind : ghc
52+ compilerVersion : 9.2.8
4853 setup-method : ghcup
4954 allow-failure : false
5055 - compiler : ghc-9.0.2
@@ -120,7 +125,7 @@ jobs:
120125 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
121126 if [ "${{ matrix.setup-method }}" = ghcup ]; then
122127 mkdir -p "$HOME/.ghcup/bin"
123- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
128+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
124129 chmod a+x "$HOME/.ghcup/bin/ghcup"
125130 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
126131 "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
@@ -129,7 +134,7 @@ jobs:
129134 apt-get update
130135 apt-get install -y "$HCNAME"
131136 mkdir -p "$HOME/.ghcup/bin"
132- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
137+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
133138 chmod a+x "$HOME/.ghcup/bin/ghcup"
134139 "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
135140 fi
@@ -145,10 +150,12 @@ jobs:
145150 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
146151 HCDIR=/opt/$HCKIND/$HCVER
147152 if [ "${{ matrix.setup-method }}" = ghcup ]; then
148- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
153+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
154+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
155+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
149156 echo "HC=$HC" >> "$GITHUB_ENV"
150- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
151- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
157+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
158+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
152159 echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
153160 else
154161 HC=$HCDIR/bin/$HCKIND
@@ -216,8 +223,8 @@ jobs:
216223 - name : install cabal-docspec
217224 run : |
218225 mkdir -p $HOME/.cabal/bin
219- curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20230406 /cabal-docspec-0.0.0.20230406 -x86_64-linux.xz > cabal-docspec.xz
220- echo '68fa9addd5dc453d533a74a763950499d4593b1297c9a05c3ea5bd1acc04c9dd cabal-docspec.xz' | sha256sum -c -
226+ curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20230517 /cabal-docspec-0.0.0.20230517 -x86_64-linux.xz > cabal-docspec.xz
227+ echo '3b31bbe463ad4d671abbc103db49628562ec48a6604cab278207b5b6acd21ed7 cabal-docspec.xz' | sha256sum -c -
221228 xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
222229 rm -f cabal-docspec.xz
223230 chmod a+x $HOME/.cabal/bin/cabal-docspec
@@ -298,10 +305,14 @@ jobs:
298305 rm -f cabal.project.local
299306 - name : constraint set intersection
300307 run : |
308+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='rere +rere-intersection' all --dry-run
309+ cabal-plan topo | sort
301310 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='rere +rere-intersection' --dependencies-only -j2 all
302311 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='rere +rere-intersection' all
303312 - name : constraint set no-cfg
304313 run : |
314+ if [ $((HCNUMVER >= 70800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='rere -rere-cfg' all --dry-run ; fi
315+ if [ $((HCNUMVER >= 70800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
305316 if [ $((HCNUMVER >= 70800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='rere -rere-cfg' --dependencies-only -j2 all ; fi
306317 if [ $((HCNUMVER >= 70800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='rere -rere-cfg' all ; fi
307318 - name : save cache
0 commit comments