88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.19.20240514
11+ # version: 0.19.20241223
1212#
13- # REGENDATA ("0.19.20240514 ",["github","--no-cabal-check","agda-stdlib-utils.cabal"])
13+ # REGENDATA ("0.19.20241223 ",["github","--no-cabal-check","agda-stdlib-utils.cabal"])
1414#
1515name : Haskell-CI
1616on :
@@ -45,19 +45,24 @@ jobs:
4545 strategy :
4646 matrix :
4747 include :
48+ - compiler : ghc-9.12.1
49+ compilerKind : ghc
50+ compilerVersion : 9.12.1
51+ setup-method : ghcup
52+ allow-failure : false
4853 - compiler : ghc-9.10.1
4954 compilerKind : ghc
5055 compilerVersion : 9.10.1
5156 setup-method : ghcup
5257 allow-failure : false
53- - compiler : ghc-9.8.2
58+ - compiler : ghc-9.8.4
5459 compilerKind : ghc
55- compilerVersion : 9.8.2
60+ compilerVersion : 9.8.4
5661 setup-method : ghcup
5762 allow-failure : false
58- - compiler : ghc-9.6.5
63+ - compiler : ghc-9.6.6
5964 compilerKind : ghc
60- compilerVersion : 9.6.5
65+ compilerVersion : 9.6.6
6166 setup-method : ghcup
6267 allow-failure : false
6368 - compiler : ghc-9.4.8
@@ -92,15 +97,29 @@ jobs:
9297 allow-failure : false
9398 fail-fast : false
9499 steps :
95- - name : apt
100+ - name : apt-get install
96101 run : |
97102 apt-get update
98103 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
104+ - name : Install GHCup
105+ run : |
99106 mkdir -p "$HOME/.ghcup/bin"
100- curl -sL https://downloads.haskell.org/ghcup/0.1.20 .0/x86_64-linux-ghcup-0.1.20 .0 > "$HOME/.ghcup/bin/ghcup"
107+ curl -sL https://downloads.haskell.org/ghcup/0.1.30 .0/x86_64-linux-ghcup-0.1.30 .0 > "$HOME/.ghcup/bin/ghcup"
101108 chmod a+x "$HOME/.ghcup/bin/ghcup"
109+ - name : Install cabal-install
110+ run : |
111+ "$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
112+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
113+ - name : Install GHC (GHCup)
114+ if : matrix.setup-method == 'ghcup'
115+ run : |
102116 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
103- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
117+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
118+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
119+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
120+ echo "HC=$HC" >> "$GITHUB_ENV"
121+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
122+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
104123 env :
105124 HCKIND : ${{ matrix.compilerKind }}
106125 HCNAME : ${{ matrix.compiler }}
@@ -111,21 +130,12 @@ jobs:
111130 echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
112131 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
113132 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
114- HCDIR=/opt/$HCKIND/$HCVER
115- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
116- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
117- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
118- echo "HC=$HC" >> "$GITHUB_ENV"
119- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
120- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
121- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
122133 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
123134 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
124135 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
125136 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
126137 echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
127138 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
128- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
129139 env :
130140 HCKIND : ${{ matrix.compilerKind }}
131141 HCNAME : ${{ matrix.compiler }}
@@ -234,8 +244,8 @@ jobs:
234244 rm -f cabal.project.local
235245 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
236246 - name : save cache
237- uses : actions/cache/save@v4
238247 if : always()
248+ uses : actions/cache/save@v4
239249 with :
240250 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
241251 path : ~/.cabal/store
0 commit comments