aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: