X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=.github%2Fworkflows%2Fhaskell.yml;h=4f5dda47c2136109c42d284c203216d82e34c30e;hp=f7e11706f6197c33cdab48287a7cb7d2ce51c403;hb=78e3a657fd66255c93e845adf4b1da48f6313d37;hpb=89eeebae8dc7730cbac4bb56320e307c6aab9f18 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