diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 8276531..58143e5 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -34,19 +34,22 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- + - name: Haskell setup uses: haskell-actions/setup@main with: ghc-version: ${{ matrix.ghc }} - - name: Install dependencies + - name: Configure run: | cabal update - cabal build --enable-tests --enable-benchmarks -f werror --only-dependencies + cabal configure --enable-tests --enable-benchmarks -f werror + + - name: Build dependencies + run: cabal build --only-dependencies - name: Build - run: | - cabal build --enable-tests --enable-benchmarks -f werror all + run: cabal build all - name: Run tests run: cabal test all