aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-02-07 03:09:05 +0100
committerGitHub <noreply@github.com>2021-02-06 18:09:05 -0800
commit51c3c93f0f0e7a225d259795ea225a7496288ef6 (patch)
tree8f337cd86254c708188de9c64ebcd2e971882dc3 /.github
parenta5169f68b251e04b0a68a7d93a30bafcb3f85e78 (diff)
downloadpandoc-51c3c93f0f0e7a225d259795ea225a7496288ef6.tar.gz
CI: use cabal 2.2 when building with GHC 8.0.2. (#7085)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4debe1ebe..c3f29caef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,7 +44,7 @@ jobs:
matrix:
versions:
- ghc: '8.0.2'
- cabal: '2.4'
+ cabal: '2.2'
- ghc: '8.2.2'
cabal: '2.4'
- ghc: '8.4.4'
@@ -88,14 +88,17 @@ jobs:
- name: Install dependencies
run: |
- cabal v2-update
- cabal v2-build --dependencies-only --enable-tests --disable-optimization
+ v2=$([ "${{ matrix.versions.cabal }}" = "2.2" ] && printf 'new' || printf 'v2')
+ cabal $v2-update
+ cabal $v2-build --dependencies-only --enable-tests --disable-optimization
+
- name: Build and test
run: |
- cabal v2-build --enable-tests --disable-optimization 2>&1 | tee build.log
+ v2=$([ "${{ matrix.versions.cabal }}" = "2.2" ] && printf 'new' || printf 'v2')
+ cabal $v2-build --enable-tests --disable-optimization 2>&1 | tee build.log
# fail if warnings in local build
! grep -q ": *[Ww]arning:" build.log || exit 1
- cabal v2-test --disable-optimization
+ cabal $v2-test --disable-optimization
windows: