88#
99# For more information, see https://github.com/andreasabel/haskell-ci
1010#
11- # version: 0.17.20240106
11+ # version: 0.19.20240703
1212#
13- # REGENDATA ("0.17.20240106 ",["github","GLUT.cabal"])
13+ # REGENDATA ("0.19.20240703 ",["github","GLUT.cabal"])
1414#
1515name : Haskell-CI
1616on :
2323jobs :
2424 linux :
2525 name : Haskell-CI - Linux - ${{ matrix.compiler }}
26- runs-on : ubuntu-22 .04
26+ runs-on : ubuntu-20 .04
2727 timeout-minutes :
2828 60
2929 container :
30- image : buildpack-deps:focal
30+ image : buildpack-deps:jammy
3131 continue-on-error : ${{ matrix.allow-failure }}
3232 strategy :
3333 matrix :
3434 include :
35- - compiler : ghc-9.8 .1
35+ - compiler : ghc-9.10 .1
3636 compilerKind : ghc
37- compilerVersion : 9.8 .1
37+ compilerVersion : 9.10 .1
3838 setup-method : ghcup
3939 allow-failure : false
40- - compiler : ghc-9.6.3
40+ - compiler : ghc-9.8.2
4141 compilerKind : ghc
42- compilerVersion : 9.6.3
42+ compilerVersion : 9.8.2
43+ setup-method : ghcup
44+ allow-failure : false
45+ - compiler : ghc-9.6.6
46+ compilerKind : ghc
47+ compilerVersion : 9.6.6
4348 setup-method : ghcup
4449 allow-failure : false
4550 - compiler : ghc-9.4.8
97102 curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
98103 chmod a+x "$HOME/.ghcup/bin/ghcup"
99104 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
100- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101106 apt-get update
102107 apt-get install -y freeglut3-dev
103108 env :
@@ -117,7 +122,7 @@ jobs:
117122 echo "HC=$HC" >> "$GITHUB_ENV"
118123 echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
119124 echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
120- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
125+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
121126 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
122127 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
123128 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -202,16 +207,15 @@ jobs:
202207 if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
203208 cat >> cabal.project <<EOF
204209 EOF
205- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(GLUT)$/; }' >> cabal.project.local
206- echo "flags: +BuildExamples" >> cabal.project.local
210+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(GLUT)$/; }' >> cabal.project.local
207211 cat cabal.project
208212 cat cabal.project.local
209213 - name : dump install plan
210214 run : |
211215 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
212216 cabal-plan
213217 - name : restore cache
214- uses : actions/cache/restore@v3
218+ uses : actions/cache/restore@v4
215219 with :
216220 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
217221 path : ~/.cabal/store
@@ -238,7 +242,7 @@ jobs:
238242 rm -f cabal.project.local
239243 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
240244 - name : save cache
241- uses : actions/cache/save@v3
245+ uses : actions/cache/save@v4
242246 if : always()
243247 with :
244248 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments