File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 24
24
env :
25
25
cache-name : cache-stack
26
26
with :
27
- path : ~/.stack
27
+ path : |
28
+ ~/.stack
29
+ .stack-work
28
30
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.stack') }}
29
31
restore-keys : |
30
32
${{ runner.os }}-build-${{ env.cache-name }}-
@@ -44,14 +46,11 @@ jobs:
44
46
stack-arguments : --ghc-options -Werror
45
47
46
48
- 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.
51
49
run : |
50
+ stack haddock --fast --test --no-run-tests --only-dependencies
52
51
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)"
55
54
56
55
- name : " Haddock: package"
57
56
uses : actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory
You can’t perform that action at this time.
0 commit comments