Skip to content

Commit

Permalink
Avoid unnecessary rebuilding in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmayhew committed Apr 15, 2024
1 parent 71277fa commit cd58612
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cd58612

Please sign in to comment.