From: Luke Lau Date: Tue, 21 Jan 2020 10:16:48 +0000 (+0000) Subject: Cache hoogle db X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=commitdiff_plain;h=78e3a657fd66255c93e845adf4b1da48f6313d37 Cache hoogle db --- 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