on master help sign in
Update CI
b702e62Andrzej Rybczak
.github/workflows/haskell-ci.yml+19−13
@@ -8,9 +8,9 @@
8#
8#
9# For more information, see https://github.com/haskell-CI/haskell-ci
9# For more information, see https://github.com/haskell-CI/haskell-ci
10#
10#
11−# version: 0.13.20211030
11+# version: 0.13.20211116
12#
12#
13−# REGENDATA ("0.13.20211030",["github","--config=cabal.haskell-ci","cabal.project"])
13+# REGENDATA ("0.13.20211116",["github","--config=cabal.haskell-ci","cabal.project"])
14#
14#
15name: Haskell-CI
15name: Haskell-CI
16on:
16on:
@@ -24,6 +24,8 @@ jobs:
24 linux:
24 linux:
25 name: Haskell-CI - Linux - ${{ matrix.compiler }}
25 name: Haskell-CI - Linux - ${{ matrix.compiler }}
26 runs-on: ubuntu-18.04
26 runs-on: ubuntu-18.04
27+ timeout-minutes:
28+ 60
27 container:
29 container:
28 image: buildpack-deps:bionic
30 image: buildpack-deps:bionic
29 continue-on-error: ${{ matrix.allow-failure }}
31 continue-on-error: ${{ matrix.allow-failure }}
@@ -129,6 +131,10 @@ jobs:
129 repository hackage.haskell.org
131 repository hackage.haskell.org
130 url: http://hackage.haskell.org/
132 url: http://hackage.haskell.org/
131 EOF
133 EOF
134+ cat >> $CABAL_CONFIG <<EOF
135+ program-default-options
136+ ghc-options: $GHCJOBS +RTS -M3G -RTS
137+ EOF
132 cat $CABAL_CONFIG
138 cat $CABAL_CONFIG
133 - name: versions
139 - name: versions
134 run: |
140 run: |
@@ -141,7 +147,7 @@ jobs:
141 - name: cache (tools)
147 - name: cache (tools)
142 uses: actions/cache@v2
148 uses: actions/cache@v2
143 with:
149 with:
144− key: ${{ runner.os }}-${{ matrix.compiler }}-tools-b692a344
150+ key: ${{ runner.os }}-${{ matrix.compiler }}-tools-16fe7d6d
145 path: ~/.haskell-ci-tools
151 path: ~/.haskell-ci-tools
146 - name: install cabal-plan
152 - name: install cabal-plan
147 run: |
153 run: |
@@ -154,8 +160,8 @@ jobs:
154 cabal-plan --version
160 cabal-plan --version
155 - name: install doctest
161 - name: install doctest
156 run: |
162 run: |
157− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.18' ; fi
163+ $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.20'
158− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then doctest --version ; fi
164+ doctest --version
159 - name: checkout
165 - name: checkout
160 uses: actions/checkout@v2
166 uses: actions/checkout@v2
161 with:
167 with:
@@ -163,8 +169,8 @@ jobs:
163 - name: initial cabal.project for sdist
169 - name: initial cabal.project for sdist
164 run: |
170 run: |
165 touch cabal.project
171 touch cabal.project
166− echo "packages: $GITHUB_WORKSPACE/source/./effectful" >> cabal.project
172+ echo "packages: $GITHUB_WORKSPACE/source/effectful" >> cabal.project
167− echo "packages: $GITHUB_WORKSPACE/source/./effectful-core" >> cabal.project
173+ echo "packages: $GITHUB_WORKSPACE/source/effectful-core" >> cabal.project
168 cat cabal.project
174 cat cabal.project
169 - name: sdist
175 - name: sdist
170 run: |
176 run: |
@@ -221,12 +227,12 @@ jobs:
221 $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
227 $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
222 - name: doctest
228 - name: doctest
223 run: |
229 run: |
224− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful} || false ; fi
230+ cd ${PKGDIR_effectful} || false
225− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src ; fi
231+ doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src
226− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful_core} || false ; fi
232+ cd ${PKGDIR_effectful_core} || false
227− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src ; fi
233+ doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src
228− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful_core} || false ; fi
234+ cd ${PKGDIR_effectful_core} || false
229− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators utils ; fi
235+ doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators utils
230 - name: cabal check
236 - name: cabal check
231 run: |
237 run: |
232 cd ${PKGDIR_effectful} || false
238 cd ${PKGDIR_effectful} || false
cabal.haskell-ci+1−3
@@ -1,11 +1,9 @@
1branches: master
1branches: master
2
2
3−doctest: <9.2
3+doctest: <9.3
4tests: True
4tests: True
5benchmarks: True
5benchmarks: True
6
6
7−ghcup-jobs: ==8.10.7 || >=9.2
8−
9raw-project
7raw-project
10 package effectful
8 package effectful
11 flags: +benchmark-foreign-libraries
9 flags: +benchmark-foreign-libraries