Skip to content

Commit 5582716

Browse files
committed
Build Haddock deps as well
Resolves #57
1 parent 7b3bc85 commit 5582716

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/haskell.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
env:
2525
cache-name: cache-stack
2626
with:
27-
path: ~/.stack
27+
path: |
28+
~/.stack
29+
.stack-work
2830
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.stack') }}
2931
restore-keys: |
3032
${{ runner.os }}-build-${{ env.cache-name }}-
@@ -44,14 +46,11 @@ jobs:
4446
stack-arguments: --ghc-options -Werror
4547

4648
- name: "Haddock: build"
47-
# Not sure why it’s not $(stack path --local-doc-root) but the generated
48-
# directory isn’t right, reproducible locally. Haddock reports
49-
# a different one at the end of its run, and *that* is where the
50-
# documentation is.
5149
run: |
50+
stack haddock --fast --test --no-run-tests --only-dependencies
5251
stack haddock --fast --test --no-run-tests --no-haddock-deps
53-
echo "haddock_files=$(stack path --local-install-root)/doc/" >> "$GITHUB_ENV"
54-
echo "stack path --local-install-root: $(stack path --local-install-root)"
52+
echo "haddock_files=$(stack path --local-doc-root)/" >> "$GITHUB_ENV"
53+
echo "stack path --local-doc-root: $(stack path --local-doc-root)"
5554
5655
- name: "Haddock: package"
5756
uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory

0 commit comments

Comments
 (0)