projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove hie binary check (main slowdown was Hoogle)
[lsp-test.git]
/
.github
/
workflows
/
haskell.yml
diff --git
a/.github/workflows/haskell.yml
b/.github/workflows/haskell.yml
index 1e80a3c82ee8c58f648fabf137ece03261153f3c..06086160c15dc9edb78f3c39a7b2f82b493bd097 100644
(file)
--- a/
.github/workflows/haskell.yml
+++ b/
.github/workflows/haskell.yml
@@
-37,28
+37,34
@@
jobs:
uses: actions/cache@v1.1.0
with:
path: ~/.cabal
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
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: |
- 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
pushd ../haskell-ide-engine
cabal install hie
cabal install hoogle
- hoogle generate
popd
popd
+ - name: Generate hoogle database
+ 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: |
- 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
export PATH=$PATH:$(npm bin)
cabal test