88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.19.20240512
11+ # version: 0.19.20241220
1212#
13- # REGENDATA ("0.19.20240512 ",["github","cabal.project"])
13+ # REGENDATA ("0.19.20241220 ",["github","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -32,24 +32,24 @@ jobs:
3232 strategy :
3333 matrix :
3434 include :
35- - compiler : ghc-9.10 .1
35+ - compiler : ghc-9.12 .1
3636 compilerKind : ghc
37- compilerVersion : 9.10 .1
37+ compilerVersion : 9.12 .1
3838 setup-method : ghcup
3939 allow-failure : false
40- - compiler : ghc-9.8.2
40+ - compiler : ghc-9.10.1
4141 compilerKind : ghc
42- compilerVersion : 9.8.2
42+ compilerVersion : 9.10.1
4343 setup-method : ghcup
4444 allow-failure : false
45- - compiler : ghc-9.6.3
45+ - compiler : ghc-9.6.4
4646 compilerKind : ghc
47- compilerVersion : 9.6.3
47+ compilerVersion : 9.6.4
4848 setup-method : ghcup
4949 allow-failure : false
50- - compiler : ghc-9.4.7
50+ - compiler : ghc-9.4.8
5151 compilerKind : ghc
52- compilerVersion : 9.4.7
52+ compilerVersion : 9.4.8
5353 setup-method : ghcup
5454 allow-failure : false
5555 - compiler : ghc-9.2.8
@@ -79,15 +79,30 @@ jobs:
7979 allow-failure : false
8080 fail-fast : false
8181 steps :
82- - name : apt
82+ - name : apt-get install
8383 run : |
8484 apt-get update
8585 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
86+ - name : Install GHCup
87+ run : |
8688 mkdir -p "$HOME/.ghcup/bin"
87- curl -sL https://downloads.haskell.org/ghcup/0.1.20 .0/x86_64-linux-ghcup-0.1.20 .0 > "$HOME/.ghcup/bin/ghcup"
89+ curl -sL https://downloads.haskell.org/ghcup/0.1.30 .0/x86_64-linux-ghcup-0.1.30 .0 > "$HOME/.ghcup/bin/ghcup"
8890 chmod a+x "$HOME/.ghcup/bin/ghcup"
91+ - name : Install cabal-install (prerelease)
92+ run : |
93+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
94+ "$HOME/.ghcup/bin/ghcup" install cabal 3.15.0.0.2024.10.3 || (cat "$HOME"/.ghcup/logs/*.* && false)
95+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.15.0.0.2024.10.3 -vnormal+nowrap" >> "$GITHUB_ENV"
96+ - name : Install GHC (GHCup)
97+ if : matrix.setup-method == 'ghcup'
98+ run : |
8999 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
90- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
101+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
102+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
103+ echo "HC=$HC" >> "$GITHUB_ENV"
104+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
105+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
91106 env :
92107 HCKIND : ${{ matrix.compilerKind }}
93108 HCNAME : ${{ matrix.compiler }}
@@ -98,21 +113,12 @@ jobs:
98113 echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
99114 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
100115 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
101- HCDIR=/opt/$HCKIND/$HCVER
102- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
103- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
104- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
105- echo "HC=$HC" >> "$GITHUB_ENV"
106- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
107- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
108- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
109116 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
110117 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
111118 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
112119 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
113120 echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
114121 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
115- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
116122 env :
117123 HCKIND : ${{ matrix.compilerKind }}
118124 HCNAME : ${{ matrix.compiler }}
@@ -190,7 +196,7 @@ jobs:
190196 echo " ghc-options: -Werror=missing-methods" >> cabal.project
191197 cat >> cabal.project <<EOF
192198 EOF
193- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(OneTuple)$/; }' >> cabal.project.local
199+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(OneTuple)$/; }' >> cabal.project.local
194200 cat cabal.project
195201 cat cabal.project.local
196202 - name : dump install plan
@@ -228,8 +234,8 @@ jobs:
228234 rm -f cabal.project.local
229235 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
230236 - name : save cache
231- uses : actions/cache/save@v4
232237 if : always()
238+ uses : actions/cache/save@v4
233239 with :
234240 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
235241 path : ~/.cabal/store
0 commit comments