Skip to content

Commit 7c9532f

Browse files
committed
Run doctest via cabal-install instead of cabal-exec
1 parent 3caec10 commit 7c9532f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ jobs:
6969
- run: cabal exec -- cabal test all --test-show-details=direct
7070
env:
7171
HSPEC_OPTIONS: --color
72-
- run: cabal exec -- cabal repl --with-ghc=doctest
72+
- run: cabal install exe:doctest --installdir=${{ env.RUNNER_TEMP }}
73+
- run: echo "DOCTEST_NAME=doctest.exe" >> $GITHUB_ENV
74+
if: runner.os == 'Windows'
75+
- run: echo "DOCTEST_NAME=doctest" >> $GITHUB_ENV
76+
if: runner.os != 'Windows'
77+
- run: cabal repl --with-ghc=${{ env.RUNNER_TEMP }}/${{ env.DOCTEST_NAME }}
7378

7479
success:
7580
needs: build

0 commit comments

Comments
 (0)