66#
77# haskell-ci regenerate
88#
9- # For more information, see https://github.com/andreasabel /haskell-ci
9+ # For more information, see https://github.com/haskell-CI /haskell-ci
1010#
11- # version: 0.19.20240517
11+ # version: 0.19.20241223
1212#
13- # REGENDATA ("0.19.20240517 ",["github","cabal.project"])
13+ # REGENDATA ("0.19.20241223 ",["github","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
3232 strategy :
3333 matrix :
3434 include :
35+ - compiler : ghc-9.12.1
36+ compilerKind : ghc
37+ compilerVersion : 9.12.1
38+ setup-method : ghcup
39+ allow-failure : false
3540 - compiler : ghc-9.10.1
3641 compilerKind : ghc
3742 compilerVersion : 9.10.1
4247 compilerVersion : 9.8.2
4348 setup-method : ghcup
4449 allow-failure : false
45- - compiler : ghc-9.6.5
50+ - compiler : ghc-9.6.6
4651 compilerKind : ghc
47- compilerVersion : 9.6.5
52+ compilerVersion : 9.6.6
4853 setup-method : ghcup
4954 allow-failure : false
5055 - compiler : ghc-9.4.8
@@ -84,15 +89,29 @@ jobs:
8489 allow-failure : false
8590 fail-fast : false
8691 steps :
87- - name : apt
92+ - name : apt-get install
8893 run : |
8994 apt-get update
9095 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
96+ - name : Install GHCup
97+ run : |
9198 mkdir -p "$HOME/.ghcup/bin"
92- curl -sL https://downloads.haskell.org/ghcup/0.1.20 .0/x86_64-linux-ghcup-0.1.20 .0 > "$HOME/.ghcup/bin/ghcup"
99+ curl -sL https://downloads.haskell.org/ghcup/0.1.30 .0/x86_64-linux-ghcup-0.1.30 .0 > "$HOME/.ghcup/bin/ghcup"
93100 chmod a+x "$HOME/.ghcup/bin/ghcup"
101+ - name : Install cabal-install
102+ run : |
103+ "$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
104+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
105+ - name : Install GHC (GHCup)
106+ if : matrix.setup-method == 'ghcup'
107+ run : |
94108 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
95- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
109+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
110+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
111+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
112+ echo "HC=$HC" >> "$GITHUB_ENV"
113+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
114+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
96115 env :
97116 HCKIND : ${{ matrix.compilerKind }}
98117 HCNAME : ${{ matrix.compiler }}
@@ -103,21 +122,12 @@ jobs:
103122 echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
104123 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
105124 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
106- HCDIR=/opt/$HCKIND/$HCVER
107- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
108- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
109- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
110- echo "HC=$HC" >> "$GITHUB_ENV"
111- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
112- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
113- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
114125 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
115126 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
116127 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
117128 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
118129 echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
119130 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
120- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
121131 env :
122132 HCKIND : ${{ matrix.compilerKind }}
123133 HCNAME : ${{ matrix.compiler }}
@@ -299,8 +309,8 @@ jobs:
299309 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' --dependencies-only -j2 all
300310 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' all
301311 - name : save cache
302- uses : actions/cache/save@v4
303312 if : always()
313+ uses : actions/cache/save@v4
304314 with :
305315 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
306316 path : ~/.cabal/store
0 commit comments