@@ -124,7 +124,7 @@ jobs:
124
124
# Have stack construct a build plan and lock file for use as a cache key.
125
125
- name : Determine Build Plan
126
126
run : |
127
- $STACK build --haddock -- test --dry-run
127
+ $STACK build --test --dry-run
128
128
echo '\n' stack.yaml.lock ${{ hashFiles('stack.yaml.lock') }}
129
129
130
130
# Cache pre-built dependencies from the same lock file; restore from
@@ -162,7 +162,7 @@ jobs:
162
162
163
163
# Build the dependencies, hopefully doing little to no work.
164
164
- name : Build Dependencies
165
- run : $STACK build --haddock -- test --only-dependencies
165
+ run : $STACK build --test --only-dependencies
166
166
167
167
# Cache pre-built modules for incremental builds, making sure to keep
168
168
# builds with different dependencies separate.
@@ -185,10 +185,13 @@ jobs:
185
185
# Using --no-haddock-deps somehow forces it to rebuild from scratch every
186
186
# time, so leave that out -- rebuilding unconditionally seems worse than
187
187
# 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
190
190
191
191
# Run tests with concurrency disabled; see
192
192
# https://github.com/commercialhaskell/stack/issues/5024.
193
193
- 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