Skip to content

Commit

Permalink
Set Cabal options in cabal.project
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Jan 31, 2025
1 parent 9393da3 commit 3df2ab9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
needs: ormolu
strategy:
matrix:
cabal: ["3.10"]
cabal: ["3.12"]
ghc: ["9.6.6", "9.8.2", "9.10.1"]
env:
CONFIG: "--enable-tests --enable-benchmarks --flags=dev"
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/[email protected]
Expand All @@ -30,7 +28,7 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: cabal update
- run: cabal freeze $CONFIG
- run: cabal freeze
- uses: actions/[email protected]
with:
path: |
Expand All @@ -40,7 +38,7 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal format && git diff --exit-code --color=always
- run: cabal build $CONFIG
- run: cabal test $CONFIG
- run: cabal haddock $CONFIG
- run: cabal build
- run: cabal test
- run: cabal haddock
- run: cabal sdist
4 changes: 4 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages: .
tests: True
benchmarks: True
constraints: mmark +dev

0 comments on commit 3df2ab9

Please sign in to comment.