From 78e3a657fd66255c93e845adf4b1da48f6313d37 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Tue, 21 Jan 2020 10:16:48 +0000 Subject: [PATCH] Cache hoogle db --- .github/workflows/haskell.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index f7e1170..4f5dda4 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -41,6 +41,12 @@ jobs: restore-keys: | ${{ runner.OS }}-${{ matrix.ghc }}-cabal + - name: Cache Hoogle + uses: actions/cache@v1.1.0 + with: + path: ~/.hoogle + key: ${{ runner.OS }}-${{ matrix.ghc }}-hoogle-${{ env.hieref }} + - name: Build HIE run: | if [ -e $HOME/.cabal/bin/hie ]; then @@ -52,7 +58,12 @@ jobs: cabal install hoogle popd - name: Generate hoogle database - run: hoogle generate + run: | + if [ -d $HOME/.hoogle ]; then + echo "hoogle database already built" + exit 0 + fi + hoogle generate - name: Install JS Language Server run: npm install javascript-typescript-langserver - name: Build -- 2.30.2