88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.16
11+ # version: 0.19.20240513
1212#
13- # REGENDATA ("0.16 ",["github","--config=cabal.haskell-ci","--benchmarks-jobs=<9.0","cabal.project"])
13+ # REGENDATA ("0.19.20240513 ",["github","--config=cabal.haskell-ci","--benchmarks-jobs=<9.0","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -23,24 +23,34 @@ jobs:
2323 timeout-minutes :
2424 60
2525 container :
26- image : buildpack-deps:bionic
26+ image : buildpack-deps:focal
2727 continue-on-error : ${{ matrix.allow-failure }}
2828 strategy :
2929 matrix :
3030 include :
31- - compiler : ghc-9.6 .1
31+ - compiler : ghc-9.10 .1
3232 compilerKind : ghc
33- compilerVersion : 9.6 .1
33+ compilerVersion : 9.10 .1
3434 setup-method : ghcup
3535 allow-failure : false
36- - compiler : ghc-9.4.4
36+ - compiler : ghc-9.8.2
3737 compilerKind : ghc
38- compilerVersion : 9.4.4
38+ compilerVersion : 9.8.2
3939 setup-method : ghcup
4040 allow-failure : false
41- - compiler : ghc-9.2.7
41+ - compiler : ghc-9.6.5
4242 compilerKind : ghc
43- compilerVersion : 9.2.7
43+ compilerVersion : 9.6.5
44+ setup-method : ghcup
45+ allow-failure : false
46+ - compiler : ghc-9.4.8
47+ compilerKind : ghc
48+ compilerVersion : 9.4.8
49+ setup-method : ghcup
50+ allow-failure : false
51+ - compiler : ghc-9.2.8
52+ compilerKind : ghc
53+ compilerVersion : 9.2.8
4454 setup-method : ghcup
4555 allow-failure : false
4656 - compiler : ghc-9.0.2
@@ -86,18 +96,18 @@ jobs:
8696 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8797 if [ "${{ matrix.setup-method }}" = ghcup ]; then
8898 mkdir -p "$HOME/.ghcup/bin"
89- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
99+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
90100 chmod a+x "$HOME/.ghcup/bin/ghcup"
91101 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
102+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
93103 else
94104 apt-add-repository -y 'ppa:hvr/ghc'
95105 apt-get update
96106 apt-get install -y "$HCNAME"
97107 mkdir -p "$HOME/.ghcup/bin"
98- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
108+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
99109 chmod a+x "$HOME/.ghcup/bin/ghcup"
100- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
110+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101111 fi
102112 env :
103113 HCKIND : ${{ matrix.compilerKind }}
@@ -111,17 +121,19 @@ jobs:
111121 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112122 HCDIR=/opt/$HCKIND/$HCVER
113123 if [ "${{ matrix.setup-method }}" = ghcup ]; then
114- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
124+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
125+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
126+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
115127 echo "HC=$HC" >> "$GITHUB_ENV"
116- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
117- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
118- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
128+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
129+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
130+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
119131 else
120132 HC=$HCDIR/bin/$HCKIND
121133 echo "HC=$HC" >> "$GITHUB_ENV"
122134 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
123135 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
124- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
136+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
125137 fi
126138
127139 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -171,9 +183,9 @@ jobs:
171183 run : |
172184 $CABAL v2-update -v
173185 - name : cache (tools)
174- uses : actions/cache/restore@v3
186+ uses : actions/cache/restore@v4
175187 with :
176- key : ${{ runner.os }}-${{ matrix.compiler }}-tools-43755058
188+ key : ${{ runner.os }}-${{ matrix.compiler }}-tools-53a0204c
177189 path : ~/.haskell-ci-tools
178190 - name : install cabal-plan
179191 run : |
@@ -186,16 +198,16 @@ jobs:
186198 cabal-plan --version
187199 - name : install doctest
188200 run : |
189- if [ $((HCNUMVER < 90000)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.20 ' ; fi
201+ if [ $((HCNUMVER < 90000)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.22.0 ' ; fi
190202 if [ $((HCNUMVER < 90000)) -ne 0 ] ; then doctest --version ; fi
191203 - name : save cache (tools)
192- uses : actions/cache/save@v3
204+ uses : actions/cache/save@v4
193205 if : always()
194206 with :
195- key : ${{ runner.os }}-${{ matrix.compiler }}-tools-43755058
207+ key : ${{ runner.os }}-${{ matrix.compiler }}-tools-53a0204c
196208 path : ~/.haskell-ci-tools
197209 - name : checkout
198- uses : actions/checkout@v3
210+ uses : actions/checkout@v4
199211 with :
200212 path : source
201213 - name : initial cabal.project for sdist
@@ -237,7 +249,7 @@ jobs:
237249 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
238250 cabal-plan
239251 - name : restore cache
240- uses : actions/cache/restore@v3
252+ uses : actions/cache/restore@v4
241253 with :
242254 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
243255 path : ~/.cabal/store
@@ -275,7 +287,7 @@ jobs:
275287 rm -f cabal.project.local
276288 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
277289 - name : save cache
278- uses : actions/cache/save@v3
290+ uses : actions/cache/save@v4
279291 if : always()
280292 with :
281293 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments