66#
77# haskell-ci regenerate
88#
9- # For more information, see https://github.com/haskell-CI /haskell-ci
9+ # For more information, see https://github.com/andreasabel /haskell-ci
1010#
11- # version: 0.16.4
11+ # version: 0.17.20231010
1212#
13- # REGENDATA ("0.16.4 ",["github","io-streams.cabal"])
13+ # REGENDATA ("0.17.20231010 ",["github","io-streams.cabal"])
1414#
1515name : Haskell-CI
1616on :
1717 push :
1818 branches :
1919 - master
20- - ci*
2120 pull_request :
2221 branches :
2322 - master
24- - ci*
2523jobs :
2624 linux :
2725 name : Haskell-CI - Linux - ${{ matrix.compiler }}
2826 runs-on : ubuntu-20.04
2927 timeout-minutes :
3028 60
3129 container :
32- image : buildpack-deps:bionic
30+ image : buildpack-deps:focal
3331 continue-on-error : ${{ matrix.allow-failure }}
3432 strategy :
3533 matrix :
3634 include :
37- - compiler : ghc-9.6.2
35+ - compiler : ghc-9.8.1
3836 compilerKind : ghc
39- compilerVersion : 9.6.2
37+ compilerVersion : 9.8.1
4038 setup-method : ghcup
4139 allow-failure : false
42- - compiler : ghc-9.4.5
40+ - compiler : ghc-9.6.3
4341 compilerKind : ghc
44- compilerVersion : 9.4.5
42+ compilerVersion : 9.6.3
43+ setup-method : ghcup
44+ allow-failure : false
45+ - compiler : ghc-9.4.7
46+ compilerKind : ghc
47+ compilerVersion : 9.4.7
4548 setup-method : ghcup
4649 allow-failure : false
4750 - compiler : ghc-9.2.8
8992 compilerVersion : 7.10.3
9093 setup-method : hvr-ppa
9194 allow-failure : false
92- - compiler : ghc-7.8.4
93- compilerKind : ghc
94- compilerVersion : 7.8.4
95- setup-method : hvr-ppa
96- allow-failure : false
97- - compiler : ghc-7.6.3
98- compilerKind : ghc
99- compilerVersion : 7.6.3
100- setup-method : hvr-ppa
101- allow-failure : false
102- - compiler : ghc-7.4.2
103- compilerKind : ghc
104- compilerVersion : 7.4.2
105- setup-method : hvr-ppa
106- allow-failure : false
10795 fail-fast : false
10896 steps :
10997 - name : apt
@@ -112,17 +100,19 @@ jobs:
112100 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
113101 if [ "${{ matrix.setup-method }}" = ghcup ]; then
114102 mkdir -p "$HOME/.ghcup/bin"
115- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
103+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
116104 chmod a+x "$HOME/.ghcup/bin/ghcup"
105+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
117106 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
118107 "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
119108 else
120109 apt-add-repository -y 'ppa:hvr/ghc'
121110 apt-get update
122111 apt-get install -y "$HCNAME"
123112 mkdir -p "$HOME/.ghcup/bin"
124- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
113+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
125114 chmod a+x "$HOME/.ghcup/bin/ghcup"
115+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
126116 "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
127117 fi
128118 env :
@@ -137,10 +127,12 @@ jobs:
137127 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
138128 HCDIR=/opt/$HCKIND/$HCVER
139129 if [ "${{ matrix.setup-method }}" = ghcup ]; then
140- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
130+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
131+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
132+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
141133 echo "HC=$HC" >> "$GITHUB_ENV"
142- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
143- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
134+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
135+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
144136 echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
145137 else
146138 HC=$HCDIR/bin/$HCKIND
@@ -206,7 +198,7 @@ jobs:
206198 chmod a+x $HOME/.cabal/bin/cabal-plan
207199 cabal-plan --version
208200 - name : checkout
209- uses : actions/checkout@v3
201+ uses : actions/checkout@v4
210202 with :
211203 path : source
212204 - name : initial cabal.project for sdist
@@ -233,7 +225,6 @@ jobs:
233225 if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package io-streams" >> cabal.project ; fi
234226 if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
235227 cat >> cabal.project <<EOF
236- allow-newer: bytestring
237228 EOF
238229 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(io-streams)$/; }' >> cabal.project.local
239230 cat cabal.project
@@ -272,14 +263,6 @@ jobs:
272263 run : |
273264 rm -f cabal.project.local
274265 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
275- - name : prepare for constraint sets
276- run : |
277- rm -f cabal.project.local
278- - name : constraint set bytestring-0.12
279- run : |
280- if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --dependencies-only -j2 all ; fi
281- if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' all ; fi
282- if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' all ; fi
283266 - name : save cache
284267 uses : actions/cache/save@v3
285268 if : always()
0 commit comments