uses: actions/cache@v1.1.0
with:
path: ~/.cabal
- key: ${{ runner.OS }}-${{ matrix.ghc }}-cabal-${{ hashFiles('*.cabal') }}
+ key: ${{ runner.OS }}-${{ matrix.ghc }}-cabal-${{ env.hieref }}
restore-keys: |
${{ runner.OS }}-${{ matrix.ghc }}-cabal
- name: Build HIE
run: |
- # if [ -e $HOME/.cabal/bin/hie ]; then
- # echo "hie is already built"
- # exit 0
- # fi
+ 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
- hoogle generate
popd
+ - name: Generate hoogle database
+ run: hoogle generate
- name: Install JS Language Server
run: npm install javascript-typescript-langserver
- name: Build