Skip to content

Commit 0642150

Browse files
committed
More backjumps for tests and benchs
1 parent 292ae19 commit 0642150

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/hackage.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,18 @@ jobs:
133133
# For floskell and stylish-haskell
134134
echo " floskell:base, floskell:ghc-prim, stylish-haskell:Cabal,stylish-haskell:ghc-lib-parser," >> cabal.project
135135
136-
- name: "Build all package components in isolation"
136+
- name: "Build main package components in isolation"
137137
if: steps.get-hackage-version.outputs.exists != 'true'
138138
run: |
139139
cd $(ls -d ./incoming/${{ matrix.package }}-*)
140-
cabal build --enable-tests --enable-benchmarks || cabal build --enable-tests --enable-benchmarks -v3
140+
cabal build
141+
142+
- name: "Build package tests and benchmarks in isolation"
143+
if: steps.get-hackage-version.outputs.exists != 'true'
144+
run: |
145+
cd $(ls -d ./incoming/${{ matrix.package }}-*)
146+
# cabal-3.4.0.0 run out of backjumps with tests and benchs enabled
147+
cabal build --enable-tests --enable-benchmarks --max-backjumps 8000
141148
142149
- name: "Generate haddock for hackage"
143150
if: steps.get-hackage-version.outputs.exists != 'true'

0 commit comments

Comments
 (0)