Skip to content

Commit

Permalink
Merge pull request #8 from ekmett/enable-caching
Browse files Browse the repository at this point in the history
enable dependency caching
  • Loading branch information
ekmett committed Mar 30, 2024
2 parents c1b2cd2 + a981220 commit d9632c6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: haskell ci
on:
on:
push:
pull_request:
workflow_dispatch:
jobs:
generate-matrix:
name: "Generate matrix from cabal"
outputs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
runs-on: ubuntu-latest
steps:
Expand All @@ -25,12 +25,18 @@ jobs:
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
steps:
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- run: cabal freeze --enable-tests
- uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal build all
- run: cabal test --test-option=--color=always --test-show-details=always test:placeholder-test
- run: cabal test --enable-profiling --test-option=--color=always --test-show-details=always test:placeholder-test

0 comments on commit d9632c6

Please sign in to comment.