@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.15.20220609
11+# version: 0.13.20211111
1212#
13−# REGENDATA ("0.15.20220609",["github","cabal.project"])
13+# REGENDATA ("0.13.20211111",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -23,7 +23,7 @@ on:
2323jobs:
2424 linux:
2525 name: Haskell-CI - Linux - ${{ matrix.compiler }}
26− runs-on: ubuntu-20.04
26+ runs-on: ubuntu-18.04
2727 timeout-minutes:
2828 60
2929 container:
@@ -32,20 +32,15 @@ jobs:
3232 strategy:
3333 matrix:
3434 include:
35− - compiler: ghc-9.4.0.20220523
35+ - compiler: ghc-9.2.1
3636 compilerKind: ghc
37− compilerVersion: 9.4.0.20220523
38− setup-method: ghcup
39− allow-failure: true
40− - compiler: ghc-9.2.3
41− compilerKind: ghc
42− compilerVersion: 9.2.3
37+ compilerVersion: 9.2.1
4338 setup-method: ghcup
4439 allow-failure: false
45− - compiler: ghc-9.0.2
40+ - compiler: ghc-9.0.1
4641 compilerKind: ghc
47− compilerVersion: 9.0.2
48− setup-method: ghcup
42+ compilerVersion: 9.0.1
43+ setup-method: hvr-ppa
4944 allow-failure: false
5045 - compiler: ghc-8.10.7
5146 compilerKind: ghc
@@ -77,6 +72,16 @@ jobs:
7772 compilerVersion: 8.0.2
7873 setup-method: hvr-ppa
7974 allow-failure: false
75+ - compiler: ghc-7.10.3
76+ compilerKind: ghc
77+ compilerVersion: 7.10.3
78+ setup-method: hvr-ppa
79+ allow-failure: false
80+ - compiler: ghc-7.8.4
81+ compilerKind: ghc
82+ compilerVersion: 7.8.4
83+ setup-method: hvr-ppa
84+ allow-failure: false
8085 fail-fast: false
8186 steps:
8287 - name: apt
@@ -85,19 +90,18 @@ jobs:
8590 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8691 if [ "${{ matrix.setup-method }}" = ghcup ]; then
8792 mkdir -p "$HOME/.ghcup/bin"
88− curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
93+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
8994 chmod a+x "$HOME/.ghcup/bin/ghcup"
90− if $HEADHACKAGE; then "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml; fi
91− "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
96+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
9397 else
9498 apt-add-repository -y 'ppa:hvr/ghc'
9599 apt-get update
96100 apt-get install -y "$HCNAME"
97101 mkdir -p "$HOME/.ghcup/bin"
98− curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
102+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
99103 chmod a+x "$HOME/.ghcup/bin/ghcup"
100− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
104+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
101105 fi
102106 env:
103107 HCKIND: ${{ matrix.compilerKind }}
@@ -128,7 +132,7 @@ jobs:
128132 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
129133 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
130134 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
131− if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
135+ echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
132136 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
133137 echo "GHCJSARITH=0" >> "$GITHUB_ENV"
134138 env:
@@ -157,18 +161,6 @@ jobs:
157161 repository hackage.haskell.org
158162 url: http://hackage.haskell.org/
159163 EOF
160− if $HEADHACKAGE; then
161− cat >> $CABAL_CONFIG <<EOF
162− repository head.hackage.ghc.haskell.org
163− url: https://ghc.gitlab.haskell.org/head.hackage/
164− secure: True
165− root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
166− 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
167− f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
168− key-threshold: 3
169− active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
170− EOF
171− fi
172164 cat >> $CABAL_CONFIG <<EOF
173165 program-default-options
174166 ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -185,7 +177,7 @@ jobs:
185177 - name: cache (tools)
186178 uses: actions/cache@v2
187179 with:
188− key: ${{ runner.os }}-${{ matrix.compiler }}-tools-445c2459
180+ key: ${{ runner.os }}-${{ matrix.compiler }}-tools-13a8fe6d
189181 path: ~/.haskell-ci-tools
190182 - name: install cabal-plan
191183 run: |
@@ -198,8 +190,8 @@ jobs:
198190 cabal-plan --version
199191 - name: install doctest
200192 run: |
201− if [ $((HCNUMVER < 90000)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.20' ; fi
202− if [ $((HCNUMVER < 90000)) -ne 0 ] ; then doctest --version ; fi
193+ if [ $((HCNUMVER >= 80000 && HCNUMVER < 90000)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.17' ; fi
194+ if [ $((HCNUMVER >= 80000 && HCNUMVER < 90000)) -ne 0 ] ; then doctest --version ; fi
203195 - name: checkout
204196 uses: actions/checkout@v2
205197 with:
@@ -229,9 +221,6 @@ jobs:
229221 if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
230222 cat >> cabal.project <<EOF
231223 EOF
232− if $HEADHACKAGE; then
233− echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
234− fi
235224 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(http-api-data)$/; }' >> cabal.project.local
236225 cat cabal.project
237226 cat cabal.project.local
@@ -261,15 +250,15 @@ jobs:
261250 - name: doctest
262251 run: |
263252 perl -i -e 'while (<ARGV>) { print unless /package-id\s+(base-compat)-\d+(\.\d+)*/; }' .ghc.environment.*
264− if [ $((HCNUMVER < 90000)) -ne 0 ] ; then cd ${PKGDIR_http_api_data} || false ; fi
265− if [ $((HCNUMVER < 90000)) -ne 0 ] ; then doctest -XHaskell2010 src/ ; fi
253+ if [ $((HCNUMVER >= 80000 && HCNUMVER < 90000)) -ne 0 ] ; then cd ${PKGDIR_http_api_data} || false ; fi
254+ if [ $((HCNUMVER >= 80000 && HCNUMVER < 90000)) -ne 0 ] ; then doctest src/ ; fi
266255 - name: cabal check
267256 run: |
268257 cd ${PKGDIR_http_api_data} || false
269258 ${CABAL} -vnormal check
270259 - name: haddock
271260 run: |
272− $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
261+ $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
273262 - name: unconstrained build
274263 run: |
275264 rm -f cabal.project.local