@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.17.20231010
11+# version: 0.19.20240402
1212#
13−# REGENDATA ("0.17.20231010",["github","--project","cabal.bench.project","-o",".github/workflows/haskell-ci-bench.yml","--github-action-name","Benchmarks"])
13+# REGENDATA ("0.19.20240402",["github","--project","cabal.bench.project","-o",".github/workflows/haskell-ci-bench.yml","--github-action-name","Benchmarks"])
1414#
1515name: Benchmarks
1616on:
@@ -32,14 +32,24 @@ jobs:
3232 strategy:
3333 matrix:
3434 include:
35− - compiler: ghc-9.4.4
35+ - compiler: ghc-9.8.2
3636 compilerKind: ghc
37− compilerVersion: 9.4.4
37+ compilerVersion: 9.8.2
3838 setup-method: ghcup
3939 allow-failure: false
40− - compiler: ghc-9.2.7
40+ - compiler: ghc-9.6.4
4141 compilerKind: ghc
42− compilerVersion: 9.2.7
42+ compilerVersion: 9.6.4
43+ setup-method: ghcup
44+ allow-failure: false
45+ - compiler: ghc-9.4.8
46+ compilerKind: ghc
47+ compilerVersion: 9.4.8
48+ setup-method: ghcup
49+ allow-failure: false
50+ - compiler: ghc-9.2.8
51+ compilerKind: ghc
52+ compilerVersion: 9.2.8
4353 setup-method: ghcup
4454 allow-failure: false
4555 - compiler: ghc-9.0.2
@@ -85,18 +95,20 @@ jobs:
8595 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8696 if [ "${{ matrix.setup-method }}" = ghcup ]; then
8797 mkdir -p "$HOME/.ghcup/bin"
88− curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
98+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
8999 chmod a+x "$HOME/.ghcup/bin/ghcup"
100+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
90101 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
91− "$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)
92103 else
93104 apt-add-repository -y 'ppa:hvr/ghc'
94105 apt-get update
95106 apt-get install -y "$HCNAME"
96107 mkdir -p "$HOME/.ghcup/bin"
97− curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$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"
98109 chmod a+x "$HOME/.ghcup/bin/ghcup"
99− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
110+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
111+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100112 fi
101113 env:
102114 HCKIND: ${{ matrix.compilerKind }}
@@ -116,13 +128,13 @@ jobs:
116128 echo "HC=$HC" >> "$GITHUB_ENV"
117129 echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118130 echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
119− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
131+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
120132 else
121133 HC=$HCDIR/bin/$HCKIND
122134 echo "HC=$HC" >> "$GITHUB_ENV"
123135 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
124136 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
125− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
126138 fi
127139
128140 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -254,10 +266,10 @@ jobs:
254266 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.2.*' all
255267 - name: constraint set random-1.1
256268 run: |
257− $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' all --dry-run
258− cabal-plan topo | sort
259− $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' --dependencies-only -j2 all
260− $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' all
269+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' all --dry-run ; fi
270+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
271+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' --dependencies-only -j2 all ; fi
272+ if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' all ; fi
261273 - name: save cache
262274 uses: actions/cache/save@v3
263275 if: always()