Skip to content

Commit c6d51e5

Browse files
committed
Update the Stack CI workflow: separate Haddock from building.
1 parent de9b575 commit c6d51e5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/stack-ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
# Have stack construct a build plan and lock file for use as a cache key.
125125
- name: Determine Build Plan
126126
run: |
127-
$STACK build --haddock --test --dry-run
127+
$STACK build --test --dry-run
128128
echo '\n' stack.yaml.lock ${{ hashFiles('stack.yaml.lock') }}
129129
130130
# Cache pre-built dependencies from the same lock file; restore from
@@ -162,7 +162,7 @@ jobs:
162162
163163
# Build the dependencies, hopefully doing little to no work.
164164
- name: Build Dependencies
165-
run: $STACK build --haddock --test --only-dependencies
165+
run: $STACK build --test --only-dependencies
166166

167167
# Cache pre-built modules for incremental builds, making sure to keep
168168
# builds with different dependencies separate.
@@ -185,10 +185,13 @@ jobs:
185185
# Using --no-haddock-deps somehow forces it to rebuild from scratch every
186186
# time, so leave that out -- rebuilding unconditionally seems worse than
187187
# building (and caching) dependencies' haddock.
188-
- name: Build and Haddock
189-
run: $STACK build --haddock --test --no-run-tests
188+
- name: Build
189+
run: $STACK build --test --no-run-tests
190190

191191
# Run tests with concurrency disabled; see
192192
# https://github.com/commercialhaskell/stack/issues/5024.
193193
- name: Test
194-
run: $STACK build --haddock --test -j 1
194+
run: $STACK build --test -j 1
195+
196+
- name: Haddock
197+
run: $STACK build --haddock --test --no-run-tests

0 commit comments

Comments
 (0)