Cache dist-newstyle
[lsp-test.git] / .github / workflows / haskell.yml
index be047459ba02f0279df2ecf9e02a1c8469f68312..b241a5ee86a63ca9888584a3c4131559e9a9051f 100644 (file)
@@ -30,19 +30,18 @@ jobs:
         ref: ${{ env.hieref }}
         path: haskell-ide-engine
 
-    - name: Cache Cabal binaries
+    - name: Cache HIE
       uses: actions/cache@v1
       with:
-        path: $HOME/.cabal/bin
+        path: haskell-ide-engine/dist-newstyle
         key: ${{ runner.OS }}-${{ matrix.ghc }}-${{ env.hieref }}
 
     - name: Build HIE
       run: |
-        if [ -e $HOME/.cabal/bin/hie ]; then
-            echo "hie is already built"
-            exit 0
-        fi
-        ls ../
+        # 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