on master help sign in
Update CI
2ec4a62Andrzej Rybczak
.github/workflows/haskell-ci.yml+21−15
@@ -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.20210621
11+# version: 0.13.20210912
12#
12#
13−# REGENDATA ("0.13.20210621",["github","--config=cabal.haskell-ci","cabal.project"])
13+# REGENDATA ("0.13.20210912",["github","--config=cabal.haskell-ci","cabal.project"])
14#
14#
15name: Haskell-CI
15name: Haskell-CI
16on:
16on:
@@ -30,9 +30,9 @@ jobs:
30 strategy:
30 strategy:
31 matrix:
31 matrix:
32 include:
32 include:
33− - compiler: ghc-9.2.0.20210422
33+ - compiler: ghc-9.2.0.20210821
34 compilerKind: ghc
34 compilerKind: ghc
35− compilerVersion: 9.2.0.20210422
35+ compilerVersion: 9.2.0.20210821
36 setup-method: ghcup
36 setup-method: ghcup
37 allow-failure: true
37 allow-failure: true
38 - compiler: ghc-9.0.1
38 - compiler: ghc-9.0.1
@@ -40,9 +40,9 @@ jobs:
40 compilerVersion: 9.0.1
40 compilerVersion: 9.0.1
41 setup-method: hvr-ppa
41 setup-method: hvr-ppa
42 allow-failure: false
42 allow-failure: false
43− - compiler: ghc-8.10.4
43+ - compiler: ghc-8.10.7
44 compilerKind: ghc
44 compilerKind: ghc
45− compilerVersion: 8.10.4
45+ compilerVersion: 8.10.7
46 setup-method: hvr-ppa
46 setup-method: hvr-ppa
47 allow-failure: false
47 allow-failure: false
48 - compiler: ghc-8.8.4
48 - compiler: ghc-8.8.4
@@ -58,14 +58,18 @@ jobs:
58 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
58 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
59 if [ "${{ matrix.setup-method }}" = ghcup ]; then
59 if [ "${{ matrix.setup-method }}" = ghcup ]; then
60 mkdir -p "$HOME/.ghcup/bin"
60 mkdir -p "$HOME/.ghcup/bin"
61− curl -sL https://downloads.haskell.org/ghcup/0.1.14.1/x86_64-linux-ghcup-0.1.14.1 > "$HOME/.ghcup/bin/ghcup"
61+ curl -sL https://downloads.haskell.org/ghcup/0.1.16.2/x86_64-linux-ghcup-0.1.16.2 > "$HOME/.ghcup/bin/ghcup"
62 chmod a+x "$HOME/.ghcup/bin/ghcup"
62 chmod a+x "$HOME/.ghcup/bin/ghcup"
63 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
63 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
64− "$HOME/.ghcup/bin/ghcup" install cabal 3.4.0.0
64+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.0.0
65 else
65 else
66 apt-add-repository -y 'ppa:hvr/ghc'
66 apt-add-repository -y 'ppa:hvr/ghc'
67 apt-get update
67 apt-get update
68− apt-get install -y "$HCNAME" cabal-install-3.4
68+ apt-get install -y "$HCNAME"
69+ mkdir -p "$HOME/.ghcup/bin"
70+ curl -sL https://downloads.haskell.org/ghcup/0.1.16.2/x86_64-linux-ghcup-0.1.16.2 > "$HOME/.ghcup/bin/ghcup"
71+ chmod a+x "$HOME/.ghcup/bin/ghcup"
72+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.0.0
69 fi
73 fi
70 env:
74 env:
71 HCKIND: ${{ matrix.compilerKind }}
75 HCKIND: ${{ matrix.compilerKind }}
@@ -83,13 +87,13 @@ jobs:
83 echo "HC=$HC" >> "$GITHUB_ENV"
87 echo "HC=$HC" >> "$GITHUB_ENV"
84 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
88 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
85 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
89 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
86− echo "CABAL=$HOME/.ghcup/bin/cabal-3.4.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
90+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
87 else
91 else
88 HC=$HCDIR/bin/$HCKIND
92 HC=$HCDIR/bin/$HCKIND
89 echo "HC=$HC" >> "$GITHUB_ENV"
93 echo "HC=$HC" >> "$GITHUB_ENV"
90 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
94 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
91 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
95 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
92− echo "CABAL=/opt/cabal/3.4/bin/cabal -vnormal+nowrap" >> "$GITHUB_ENV"
96+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
93 fi
97 fi
94
98
95 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
99 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -170,8 +174,8 @@ jobs:
170 - name: initial cabal.project for sdist
174 - name: initial cabal.project for sdist
171 run: |
175 run: |
172 touch cabal.project
176 touch cabal.project
173− echo "packages: $GITHUB_WORKSPACE/source/effectful" >> cabal.project
177+ echo "packages: $GITHUB_WORKSPACE/source/./effectful" >> cabal.project
174− echo "packages: $GITHUB_WORKSPACE/source/effectful-core" >> cabal.project
178+ echo "packages: $GITHUB_WORKSPACE/source/./effectful-core" >> cabal.project
175 cat cabal.project
179 cat cabal.project
176 - name: sdist
180 - name: sdist
177 run: |
181 run: |
@@ -232,9 +236,11 @@ jobs:
232 - name: doctest
236 - name: doctest
233 run: |
237 run: |
234 if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful} || false ; fi
238 if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful} || false ; fi
235− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XStrictData -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src ; fi
239+ 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
240+ if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful_core} || false ; fi
241+ 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
236 if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful_core} || false ; fi
242 if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cd ${PKGDIR_effectful_core} || false ; fi
237− if [ $((HCNUMVER < 90200)) -ne 0 ] ; then doctest -XBangPatterns -XConstraintKinds -XDataKinds -XDeriveFunctor -XFlexibleContexts -XFlexibleInstances -XGADTs -XGeneralizedNewtypeDeriving -XLambdaCase -XMultiParamTypeClasses -XNoStarIsType -XRankNTypes -XRecordWildCards -XRoleAnnotations -XScopedTypeVariables -XStandaloneDeriving -XStrictData -XTupleSections -XTypeApplications -XTypeFamilies -XTypeOperators src ; fi
243+ 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
238 - name: cabal check
244 - name: cabal check
239 run: |
245 run: |
240 cd ${PKGDIR_effectful} || false
246 cd ${PKGDIR_effectful} || false
effectful-core/effectful-core.cabal+1−1
@@ -19,7 +19,7 @@ description: An easy to use, performant extensible effects library with seamless
19
19
20extra-source-files: CHANGELOG.md
20extra-source-files: CHANGELOG.md
21
21
22−tested-with: GHC ==8.8.4 || ==8.10.4 || ==9.0.1 || ==9.2.0.20210422
22+tested-with: GHC ==8.8.4 || ==8.10.7 || ==9.0.1 || ==9.2.0.20210821
23
23
24bug-reports: https://github.com/arybczak/effectful/issues
24bug-reports: https://github.com/arybczak/effectful/issues
25source-repository head
25source-repository head
effectful/effectful.cabal+1−1
@@ -20,7 +20,7 @@ description: An easy to use, performant extensible effects library with seamless
20
20
21extra-source-files: CHANGELOG.md
21extra-source-files: CHANGELOG.md
22
22
23−tested-with: GHC ==8.8.4 || ==8.10.4 || ==9.0.1 || ==9.2.0.20210422
23+tested-with: GHC ==8.8.4 || ==8.10.7 || ==9.0.1 || ==9.2.0.20210821
24
24
25bug-reports: https://github.com/arybczak/effectful/issues
25bug-reports: https://github.com/arybczak/effectful/issues
26source-repository head
26source-repository head