From 3511f1652e63004a162a7e35e8bdf63b5de9523f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 6 Jan 2025 23:35:11 -0800 Subject: CI: don't use -Werror on ghc 9.10. --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce5ab0b33..1eaf85578 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,24 +51,31 @@ jobs: - ghc: '8.10' cabal: 'latest' cabalopts: '' + ghcopts: '-Werror' - ghc: '9.0' cabal: 'latest' cabalopts: '' + ghcopts: '-Werror' - ghc: '9.2' cabal: 'latest' cabalopts: '' + ghcopts: '-Werror' - ghc: '9.4' cabal: 'latest' cabalopts: '' + ghcopts: '-Werror' - ghc: '9.6' cabal: 'latest' cabalopts: '' + ghcopts: '-Werror' - ghc: '9.8' cabal: 'latest' cabalopts: '' + ghcopts: '-Werror' - ghc: '9.10' cabal: 'latest' cabalopts: '' + ghcopts: '' steps: - uses: actions/checkout@v4 @@ -109,7 +116,7 @@ jobs: - name: Build and test run: | - cabal test ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization --ghc-options=-Werror all + cabal test ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization --ghc-options="${{ matrix.verisons.ghcopts }}" all linux-stack: @@ -201,7 +208,7 @@ jobs: dist-newstyle key: ${{ runner.os }}-stack-work-${{ hashFiles('cabal.project') }}-${{ secrets.CACHE_VERSION }} - - name: Install dependencies + - name: Build and test run: | cabal update cabal test ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization --ghc-options=-Werror all -- cgit v1.2.3