Cache dist-newstyle
authorLuke Lau <luke_lau@icloud.com>
Wed, 6 Nov 2019 01:00:42 +0000 (01:00 +0000)
committerLuke Lau <luke_lau@icloud.com>
Wed, 6 Nov 2019 01:00:42 +0000 (01:00 +0000)
.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