Skip to content

Commit 126010a

Browse files
committed
Set Cabal options in cabal.project
1 parent 5e2632d commit 126010a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ jobs:
1818
needs: ormolu
1919
strategy:
2020
matrix:
21-
cabal: ["3.10"]
21+
cabal: ["3.12"]
2222
ghc: ["9.8.4", "9.10.1", "9.12.1"]
23-
env:
24-
CONFIG: "--enable-tests --enable-benchmarks --flags=dev"
2523
steps:
2624
- uses: actions/checkout@v4
2725
- uses: haskell-actions/setup@v2
@@ -30,7 +28,7 @@ jobs:
3028
ghc-version: ${{ matrix.ghc }}
3129
cabal-version: ${{ matrix.cabal }}
3230
- run: cabal update
33-
- run: cabal freeze $CONFIG
31+
- run: cabal freeze
3432
- uses: actions/[email protected]
3533
with:
3634
path: |
@@ -40,7 +38,7 @@ jobs:
4038
restore-keys: |
4139
${{ runner.os }}-${{ matrix.ghc }}-
4240
- run: cabal format && git diff --exit-code --color=always
43-
- run: cabal build $CONFIG
44-
- run: cabal test $CONFIG
45-
- run: cabal haddock $CONFIG
41+
- run: cabal build
42+
- run: cabal test
43+
- run: cabal haddock
4644
- run: cabal sdist

cabal.project

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
packages: .
2+
tests: True
3+
benchmarks: True
4+
constraints: html-entity-map +dev

0 commit comments

Comments
 (0)