@@ -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.19.20241223
11+# version: 0.15.20230313
13−# REGENDATA ("0.19.20241223",["github","cabal.project"])
13+# REGENDATA ("0.15.20230313",["github","cabal.project"])
15name: Haskell-CI
15name: Haskell-CI
@@ -27,39 +27,24 @@ jobs:
27 timeout-minutes:
27 timeout-minutes:
29 container:
29 container:
30− image: buildpack-deps:jammy
30+ image: buildpack-deps:bionic
31 continue-on-error: ${{ matrix.allow-failure }}
31 continue-on-error: ${{ matrix.allow-failure }}
35− - compiler: ghc-9.12.1
35+ - compiler: ghc-9.6.1
36 compilerKind: ghc
36 compilerKind: ghc
37− compilerVersion: 9.12.1
37+ compilerVersion: 9.6.1
38 setup-method: ghcup
38 setup-method: ghcup
39 allow-failure: false
39 allow-failure: false
40− - compiler: ghc-9.10.1
40+ - compiler: ghc-9.4.4
41 compilerKind: ghc
41 compilerKind: ghc
42− compilerVersion: 9.10.1
42+ compilerVersion: 9.4.4
43 setup-method: ghcup
43 setup-method: ghcup
44 allow-failure: false
44 allow-failure: false
45− - compiler: ghc-9.8.4
45+ - compiler: ghc-9.2.7
46 compilerKind: ghc
46 compilerKind: ghc
47− compilerVersion: 9.8.4
47+ compilerVersion: 9.2.7
50− - compiler: ghc-9.6.6
52− compilerVersion: 9.6.6
55− - compiler: ghc-9.4.8
57− compilerVersion: 9.4.8
60− - compiler: ghc-9.2.8
62− compilerVersion: 9.2.8
63 setup-method: ghcup
48 setup-method: ghcup
64 allow-failure: false
49 allow-failure: false
65 - compiler: ghc-9.0.2
50 - compiler: ghc-9.0.2
@@ -75,38 +60,69 @@ jobs:
75 - compiler: ghc-8.8.4
60 - compiler: ghc-8.8.4
76 compilerKind: ghc
61 compilerKind: ghc
77 compilerVersion: 8.8.4
62 compilerVersion: 8.8.4
78− setup-method: ghcup
63+ setup-method: hvr-ppa
79 allow-failure: false
64 allow-failure: false
80− - compiler: ghc-8.6.5
65+ - compiler: ghc-8.6.4
81 compilerKind: ghc
66 compilerKind: ghc
82− compilerVersion: 8.6.5
67+ compilerVersion: 8.6.4
68+ setup-method: hvr-ppa
70+ - compiler: ghc-8.4.4
72+ compilerVersion: 8.4.4
73+ setup-method: hvr-ppa
75+ - compiler: ghc-8.2.2
77+ compilerVersion: 8.2.2
78+ setup-method: hvr-ppa
80+ - compiler: ghc-8.0.2
82+ compilerVersion: 8.0.2
83+ setup-method: hvr-ppa
85+ - compiler: ghc-7.10.3
87+ compilerVersion: 7.10.3
88+ setup-method: hvr-ppa
90+ - compiler: ghc-7.8.4
92+ compilerVersion: 7.8.4
83− setup-method: ghcup
93+ setup-method: hvr-ppa
95+ - compiler: ghc-7.6.3
97+ compilerVersion: 7.6.3
98+ setup-method: hvr-ppa
100+ - compiler: ghc-7.4.2
102+ compilerVersion: 7.4.2
103+ setup-method: hvr-ppa
84 allow-failure: false
104 allow-failure: false
85 fail-fast: false
105 fail-fast: false
87− - name: apt-get install
107+ - name: apt
89 apt-get update
109 apt-get update
90 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
110 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
91− - name: Install GHCup
93− mkdir -p "$HOME/.ghcup/bin"
94− curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
95− chmod a+x "$HOME/.ghcup/bin/ghcup"
96− - name: Install cabal-install
98− "$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
99− echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
100− - name: Install GHC (GHCup)
101− if: matrix.setup-method == 'ghcup'
111+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
102− run: |
112+ 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"
114+ chmod a+x "$HOME/.ghcup/bin/ghcup"
103− "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
115+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
104− HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
116+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105− HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
117+ else
106− HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
118+ apt-add-repository -y 'ppa:hvr/ghc'
107− echo "HC=$HC" >> "$GITHUB_ENV"
119+ apt-get update
108− echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
120+ apt-get install -y "$HCNAME"
109− echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
121+ mkdir -p "$HOME/.ghcup/bin"
122+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
123+ chmod a+x "$HOME/.ghcup/bin/ghcup"
124+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
111 HCKIND: ${{ matrix.compilerKind }}
127 HCKIND: ${{ matrix.compilerKind }}
112 HCNAME: ${{ matrix.compiler }}
128 HCNAME: ${{ matrix.compiler }}
@@ -117,12 +133,28 @@ jobs:
117 echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
133 echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
118 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
134 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
119 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
135 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
136+ HCDIR=/opt/$HCKIND/$HCVER
137+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
138+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
139+ echo "HC=$HC" >> "$GITHUB_ENV"
140+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
141+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
142+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
144+ HC=$HCDIR/bin/$HCKIND
145+ echo "HC=$HC" >> "$GITHUB_ENV"
146+ echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
147+ echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
148+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
120 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
151 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
121 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
152 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
122 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
153 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
123 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
154 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
124 echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
155 echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
125 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
156 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
157+ echo "GHCJSARITH=0" >> "$GITHUB_ENV"
127 HCKIND: ${{ matrix.compilerKind }}
159 HCKIND: ${{ matrix.compilerKind }}
128 HCNAME: ${{ matrix.compiler }}
160 HCNAME: ${{ matrix.compiler }}
@@ -165,21 +197,21 @@ jobs:
165 - name: install cabal-plan
197 - name: install cabal-plan
167 mkdir -p $HOME/.cabal/bin
199 mkdir -p $HOME/.cabal/bin
168− 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
200+ 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
169− echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
201+ echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
170 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
202 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
171 rm -f cabal-plan.xz
203 rm -f cabal-plan.xz
172 chmod a+x $HOME/.cabal/bin/cabal-plan
204 chmod a+x $HOME/.cabal/bin/cabal-plan
173 cabal-plan --version
205 cabal-plan --version
174 - name: checkout
206 - name: checkout
175− uses: actions/checkout@v4
207+ uses: actions/checkout@v3
177 path: source
209 path: source
178 - name: initial cabal.project for sdist
210 - name: initial cabal.project for sdist
180 touch cabal.project
212 touch cabal.project
181 echo "packages: $GITHUB_WORKSPACE/source/uuid-types" >> cabal.project
213 echo "packages: $GITHUB_WORKSPACE/source/uuid-types" >> cabal.project
182− echo "packages: $GITHUB_WORKSPACE/source/uuid" >> cabal.project
214+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/uuid" >> cabal.project ; fi
183 cat cabal.project
215 cat cabal.project
184 - name: sdist
216 - name: sdist
@@ -199,14 +231,14 @@ jobs:
199 touch cabal.project
231 touch cabal.project
200 touch cabal.project.local
232 touch cabal.project.local
201 echo "packages: ${PKGDIR_uuid_types}" >> cabal.project
233 echo "packages: ${PKGDIR_uuid_types}" >> cabal.project
202− echo "packages: ${PKGDIR_uuid}" >> cabal.project
234+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then echo "packages: ${PKGDIR_uuid}" >> cabal.project ; fi
203− echo "package uuid-types" >> cabal.project
235+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package uuid-types" >> cabal.project ; fi
204− echo " ghc-options: -Werror=missing-methods" >> cabal.project
236+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
205− echo "package uuid" >> cabal.project
237+ if [ $((HCNUMVER >= 80200 && HCNUMVER < 90600)) -ne 0 ] ; then echo "package uuid" >> cabal.project ; fi
206− echo " ghc-options: -Werror=missing-methods" >> cabal.project
238+ if [ $((HCNUMVER >= 80200 && HCNUMVER < 90600)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
207 cat >> cabal.project <<EOF
239 cat >> cabal.project <<EOF
209− $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(uuid|uuid-types)$/; }' >> cabal.project.local
241+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(uuid|uuid-types)$/; }' >> cabal.project.local
210 cat cabal.project
242 cat cabal.project
211 cat cabal.project.local
243 cat cabal.project.local
212 - name: dump install plan
244 - name: dump install plan
@@ -214,7 +246,7 @@ jobs:
214 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
246 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
215 cabal-plan
247 cabal-plan
216 - name: restore cache
248 - name: restore cache
217− uses: actions/cache/restore@v4
249+ uses: actions/cache/restore@v3
219 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
251 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
220 path: ~/.cabal/store
252 path: ~/.cabal/store
@@ -236,8 +268,8 @@ jobs:
237 cd ${PKGDIR_uuid_types} || false
269 cd ${PKGDIR_uuid_types} || false
238 ${CABAL} -vnormal check
270 ${CABAL} -vnormal check
239− cd ${PKGDIR_uuid} || false
271+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then cd ${PKGDIR_uuid} || false ; fi
240− ${CABAL} -vnormal check
272+ if [ $((HCNUMVER < 90600)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
241 - name: haddock
273 - name: haddock
243 $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
275 $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
@@ -250,13 +282,15 @@ jobs:
250 rm -f cabal.project.local
282 rm -f cabal.project.local
251 - name: constraint set random-1.2
283 - name: constraint set random-1.2
253− $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.2.*' all --dry-run
285+ if [ $((HCNUMVER >= 71000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.2.*' --dependencies-only -j2 all ; fi
254− cabal-plan topo | sort
286+ if [ $((HCNUMVER >= 71000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.2.*' all ; fi
287+ - name: constraint set random-1.1
255− $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.2.*' --dependencies-only -j2 all
289+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' --dependencies-only -j2 all
256− $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.2.*' all
290+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='random==1.1.*' all
257 - name: save cache
291 - name: save cache
292+ uses: actions/cache/save@v3
258 if: always()
293 if: always()
259− uses: actions/cache/save@v4
261 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
295 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
262 path: ~/.cabal/store
296 path: ~/.cabal/store