From 4e01915a450f8261bff1d5ff18f6af43ea2d3684 Mon Sep 17 00:00:00 2001 From: Frank Staals Date: Sat, 18 Nov 2023 21:09:19 +0100 Subject: [PATCH] yet another attempt --- .github/workflows/gh-pages.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0639f0b53..a41286bbc 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -36,6 +36,7 @@ jobs: - name: Set PATH and environment variables run: | echo "$HOME/.cabal/bin" >> $GITHUB_PATH + echo "$HOME/.ghcup/bin" >> $GITHUB_PATH echo "LANG=C.UTF-8" >> "$GITHUB_ENV" echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV" echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV" @@ -171,7 +172,10 @@ jobs: - name: haddock run: | $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK all > haddock.raw.txt + "$HOME/.ghcup/bin/ghcup" set ghc "$HCVER" $CABAL haddock-project --with-haddock=$HADDOCK --with-ghc=$HC + env: + HCVER: ${{ matrix.compilerVersion }} - name: haddock-badge run: | grep ") in " haddock.raw.txt | sort -hr > haddock.txt