projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abstracting documentChangeUri
[lsp-test.git]
/
.github
/
workflows
/
haskell.yml
diff --git
a/.github/workflows/haskell.yml
b/.github/workflows/haskell.yml
index e4cdf76e2a374e073f0bf41cd65a654514df1c8f..2fb86aa0d3bce37b3aac1f3e4395dd017edf21c3 100644
(file)
--- a/
.github/workflows/haskell.yml
+++ b/
.github/workflows/haskell.yml
@@
-1,32
+1,34
@@
name: Haskell CI
name: Haskell CI
-on: [push]
-
+on: [push, pull_request]
jobs:
build:
jobs:
build:
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ fail-fast: false
+ matrix:
+ ghc: ['8.10.1', '8.8.3', '8.6.5', '8.4.4']
+ os: [ubuntu-latest, macOS-latest, windows-latest]
+ exclude:
+ - os: windows-latest
+ ghc: '8.8.3' # fails due to segfault
steps:
steps:
- - uses: actions/checkout@v
1
- - uses: actions/setup-haskell@v1
+ - uses: actions/checkout@v
2
+ - uses: actions/setup-haskell@v1
.1.4
with:
with:
- ghc-version: '8.6.5'
- cabal-version: '3.0'
- - run: cabal update
- - name: Install HIE
- run: |
- pushd $HOME
- git clone https://github.com/haskell/haskell-ide-engine --recurse-submodules
- cd haskell-ide-engine
- cabal install hie
- cabal install hoogle
- export PATH=$PATH:$HOME/.cabal/bin
- hoogle generate
- popd
+ ghc-version: ${{ matrix.ghc }}
+ cabal-version: '3.2'
+
+ - name: Cache Cabal
+ uses: actions/cache@v1.2.0
+ with:
+ path: ~/.cabal
+ key: ${{ runner.OS }}-${{ matrix.ghc }}-cabal-0
+
- name: Build
run: cabal build
- name: Test
- name: Build
run: cabal build
- name: Test
- run: |
- export PATH=$PATH:$HOME/.cabal/bin
- cabal test
+ run: cabal test