8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.16.4
11
+ # version: 0.17.20230929
12
12
#
13
- # REGENDATA ("0.16.4 ",["github","cabal.project"])
13
+ # REGENDATA ("0.17.20230929 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
85
85
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
86
86
if [ "${{ matrix.setup-method }}" = ghcup ]; then
87
87
mkdir -p "$HOME/.ghcup/bin"
88
- 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.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
89
89
chmod a+x "$HOME/.ghcup/bin/ghcup"
90
90
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
91
91
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
94
94
apt-get update
95
95
apt-get install -y "$HCNAME"
96
96
mkdir -p "$HOME/.ghcup/bin"
97
- 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.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
98
98
chmod a+x "$HOME/.ghcup/bin/ghcup"
99
99
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100
100
fi
@@ -110,10 +110,12 @@ jobs:
110
110
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
111
111
HCDIR=/opt/$HCKIND/$HCVER
112
112
if [ "${{ matrix.setup-method }}" = ghcup ]; then
113
- 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#')
114
116
echo "HC=$HC" >> "$GITHUB_ENV"
115
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
116
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
117
+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
118
+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
117
119
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
118
120
else
119
121
HC=$HCDIR/bin/$HCKIND
@@ -309,23 +311,16 @@ jobs:
309
311
- name : prepare for constraint sets
310
312
run : |
311
313
rm -f cabal.project.local
312
- - name : constraint set text-2.0
313
- run : |
314
- $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=2.0' all
315
- $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=2.0' all
316
- - name : constraint set text-1.2
317
- run : |
318
- if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all ; fi
319
- if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all ; fi
320
- - name : constraint set bytestring-0.11.2.0
321
- run : |
322
- $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.11.2.0' all
323
314
- name : constraint set ordered-keymap-off
324
315
run : |
316
+ $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson -ordered-keymap' all --dry-run
317
+ cabal-plan topo | sort
325
318
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson -ordered-keymap' all
326
319
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson -ordered-keymap' all
327
320
- name : constraint set ordered-keymap-on
328
321
run : |
322
+ $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all --dry-run
323
+ cabal-plan topo | sort
329
324
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all
330
325
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all
331
326
- name : save cache
0 commit comments