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 c495dc8 commit 1511f2a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,21 @@ jobs:
with:
ghc-version: ${{ matrix.ghc }}

- name: Install dependencies
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev
- name: Configure
run: |
cabal update
cabal build --only-dependencies --enable-tests --enable-benchmarks
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 1511f2a

Please sign in to comment.