From 2eba8866b7d4583e03707fd009f0d3e259353c7e Mon Sep 17 00:00:00 2001 From: Maxim Koltsov Date: Tue, 22 Jun 2021 10:27:01 +0200 Subject: [PATCH] Fix doctest running in CI --- .github/workflows/master.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8d6f554a..63e9d4ff 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -50,7 +50,10 @@ jobs: - name: Configure run: | - cabal install --ignore-project -j2 doctest --constraint='doctest ^>=0.18' + # Using separate store-dir because default one already has 'ghc-paths' package installed + # with hardcoded path to ghcup's GHC path (which it was built with). This leads to failure in + # doctest, as it tries to invoke that GHC, and it doesn't exist here. + cabal --store-dir /tmp/cabal-store install --ignore-project -j2 doctest --constraint='doctest ^>=0.18' - name: Build run: |