@@ -8,9 +8,9 @@
9# For more information, see https://github.com/haskell-CI/haskell-ci
9# For more information, see https://github.com/haskell-CI/haskell-ci
11−# version: 0.15.20221009
11+# version: 0.17.20231110
13−# REGENDATA ("0.15.20221009",["github","cabal.project"])
13+# REGENDATA ("0.17.20231110",["github","cabal.project"])
15name: Haskell-CI
15name: Haskell-CI
@@ -38,59 +38,44 @@ jobs:
41− - compiler: ghc-9.2.1
41+ - compiler: ghc-9.8.1
42 compilerKind: ghc
42 compilerKind: ghc
43− compilerVersion: 9.2.1
43+ compilerVersion: 9.8.1
44 setup-method: ghcup
44 setup-method: ghcup
45 allow-failure: false
45 allow-failure: false
46− - compiler: ghc-9.0.1
46+ - compiler: ghc-9.6.3
47 compilerKind: ghc
47 compilerKind: ghc
48− compilerVersion: 9.0.1
48+ compilerVersion: 9.6.3
49− setup-method: hvr-ppa
51− - compiler: ghc-8.10.7
53− compilerVersion: 8.10.7
54 setup-method: ghcup
49 setup-method: ghcup
55 allow-failure: false
50 allow-failure: false
56− - compiler: ghc-8.8.4
51+ - compiler: ghc-9.4.8
58− compilerVersion: 8.8.4
59− setup-method: hvr-ppa
61− - compiler: ghc-8.6.5
63− compilerVersion: 8.6.5
64− setup-method: hvr-ppa
66− - compiler: ghc-8.4.4
67 compilerKind: ghc
52 compilerKind: ghc
68− compilerVersion: 8.4.4
53+ compilerVersion: 9.4.8
69− setup-method: hvr-ppa
54+ setup-method: ghcup
70 allow-failure: false
55 allow-failure: false
71− - compiler: ghc-8.2.2
56+ - compiler: ghc-9.2.8
72 compilerKind: ghc
57 compilerKind: ghc
73− compilerVersion: 8.2.2
58+ compilerVersion: 9.2.8
74− setup-method: hvr-ppa
59+ setup-method: ghcup
75 allow-failure: false
60 allow-failure: false
76− - compiler: ghc-8.0.2
61+ - compiler: ghc-9.0.2
77 compilerKind: ghc
62 compilerKind: ghc
78− compilerVersion: 8.0.2
63+ compilerVersion: 9.0.2
79− setup-method: hvr-ppa
64+ setup-method: ghcup
80 allow-failure: false
65 allow-failure: false
81− - compiler: ghc-7.10.3
66+ - compiler: ghc-8.10.7
82 compilerKind: ghc
67 compilerKind: ghc
83− compilerVersion: 7.10.3
68+ compilerVersion: 8.10.7
84− setup-method: hvr-ppa
69+ setup-method: ghcup
85 allow-failure: false
70 allow-failure: false
86− - compiler: ghc-7.8.4
71+ - compiler: ghc-8.8.4
87 compilerKind: ghc
72 compilerKind: ghc
88− compilerVersion: 7.8.4
73+ compilerVersion: 8.8.4
89 setup-method: hvr-ppa
74 setup-method: hvr-ppa
90 allow-failure: false
75 allow-failure: false
91− - compiler: ghc-7.6.3
76+ - compiler: ghc-8.6.5
92 compilerKind: ghc
77 compilerKind: ghc
93− compilerVersion: 7.6.3
78+ compilerVersion: 8.6.5
94 setup-method: hvr-ppa
79 setup-method: hvr-ppa
95 allow-failure: false
80 allow-failure: false
96 fail-fast: false
81 fail-fast: false
@@ -101,18 +86,18 @@ jobs:
101 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
86 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
102 if [ "${{ matrix.setup-method }}" = ghcup ]; then
87 if [ "${{ matrix.setup-method }}" = ghcup ]; then
103 mkdir -p "$HOME/.ghcup/bin"
88 mkdir -p "$HOME/.ghcup/bin"
104− curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
89+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
105 chmod a+x "$HOME/.ghcup/bin/ghcup"
90 chmod a+x "$HOME/.ghcup/bin/ghcup"
106 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
91 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
107− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
92+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
109 apt-add-repository -y 'ppa:hvr/ghc'
94 apt-add-repository -y 'ppa:hvr/ghc'
110 apt-get update
95 apt-get update
111 apt-get install -y "$HCNAME"
96 apt-get install -y "$HCNAME"
112 mkdir -p "$HOME/.ghcup/bin"
97 mkdir -p "$HOME/.ghcup/bin"
113− curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$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"
114 chmod a+x "$HOME/.ghcup/bin/ghcup"
99 chmod a+x "$HOME/.ghcup/bin/ghcup"
115− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
118 HCKIND: ${{ matrix.compilerKind }}
103 HCKIND: ${{ matrix.compilerKind }}
@@ -126,17 +111,19 @@ jobs:
126 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
127 HCDIR=/opt/$HCKIND/$HCVER
112 HCDIR=/opt/$HCKIND/$HCVER
128 if [ "${{ matrix.setup-method }}" = ghcup ]; then
113 if [ "${{ matrix.setup-method }}" = ghcup ]; then
129− HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
114+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
115+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
116+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
130 echo "HC=$HC" >> "$GITHUB_ENV"
117 echo "HC=$HC" >> "$GITHUB_ENV"
131− echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
118+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
132− echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
119+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
133− echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
120+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
135 HC=$HCDIR/bin/$HCKIND
122 HC=$HCDIR/bin/$HCKIND
136 echo "HC=$HC" >> "$GITHUB_ENV"
123 echo "HC=$HC" >> "$GITHUB_ENV"
137 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
124 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
138 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
125 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
139− echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
126+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
142 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
129 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -188,14 +175,14 @@ jobs:
188 - name: install cabal-plan
175 - name: install cabal-plan
190 mkdir -p $HOME/.cabal/bin
177 mkdir -p $HOME/.cabal/bin
191− curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz
178+ curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3.0/cabal-plan-0.7.3.0-x86_64-linux.xz > cabal-plan.xz
192− echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
179+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
193 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
180 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
194 rm -f cabal-plan.xz
181 rm -f cabal-plan.xz
195 chmod a+x $HOME/.cabal/bin/cabal-plan
182 chmod a+x $HOME/.cabal/bin/cabal-plan
196 cabal-plan --version
183 cabal-plan --version
197 - name: checkout
184 - name: checkout
198− uses: actions/checkout@v2
185+ uses: actions/checkout@v3
200 path: source
187 path: source
201 - name: initial cabal.project for sdist
188 - name: initial cabal.project for sdist
@@ -219,8 +206,8 @@ jobs:
219 touch cabal.project
206 touch cabal.project
220 touch cabal.project.local
207 touch cabal.project.local
221 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
208 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
222− if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package postgresql-simple" >> cabal.project ; fi
209+ echo "package postgresql-simple" >> cabal.project
223− if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
210+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
224 cat >> cabal.project <<EOF
211 cat >> cabal.project <<EOF
225 allow-newer: cryptohash-md5-0.11.100.1:base
212 allow-newer: cryptohash-md5-0.11.100.1:base
@@ -231,8 +218,8 @@ jobs:
232 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
219 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
233 cabal-plan
220 cabal-plan
234− - name: cache
221+ - name: restore cache
235− uses: actions/cache@v2
222+ uses: actions/cache/restore@v3
237 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
224 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
238 path: ~/.cabal/store
225 path: ~/.cabal/store
@@ -256,8 +243,14 @@ jobs:
256 ${CABAL} -vnormal check
243 ${CABAL} -vnormal check
257 - name: haddock
244 - name: haddock
259− $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
246+ $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
260 - name: unconstrained build
247 - name: unconstrained build
262 rm -f cabal.project.local
249 rm -f cabal.project.local
263 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
250 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
252+ uses: actions/cache/save@v3
255+ key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
256+ path: ~/.cabal/store