X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=.github%2Fworkflows%2Fhaskell.yml;h=06086160c15dc9edb78f3c39a7b2f82b493bd097;hb=e182b6f35a5f729dddfefcc0dab79d2ee6fafa22;hp=f7e11706f6197c33cdab48287a7cb7d2ce51c403;hpb=89eeebae8dc7730cbac4bb56320e307c6aab9f18;p=lsp-test.git diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index f7e1170..0608616 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -41,25 +41,30 @@ 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 - echo "hie is already built" - exit 0 - fi pushd ../haskell-ide-engine cabal install hie 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 run: cabal build - name: Test run: | - echo $PATH - echo $(npm bin) export PATH=$PATH:$(npm bin) cabal test