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 d61a603 commit aca27c9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,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 libtcd-dev xtide xtide-data xtide-data-nonfree
- 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: |
Expand Down

0 comments on commit aca27c9

Please sign in to comment.