projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix `swapUri` in Files.hs
[lsp-test.git]
/
.github
/
workflows
/
haskell.yml
diff --git
a/.github/workflows/haskell.yml
b/.github/workflows/haskell.yml
index 32c54b90c649ce802d73806751cd3a0c55d68e61..2fb86aa0d3bce37b3aac1f3e4395dd017edf21c3 100644
(file)
--- a/
.github/workflows/haskell.yml
+++ b/
.github/workflows/haskell.yml
@@
-1,26
+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
- -
name: Install dependencies
- run: cabal install --only-dependencies --enable-tests
- - name: Install HIE
- run: |
- pushd $HOME
- git clone https://github.com/haskell/haskell-ide-engine --recurse-submodules
- cd haskell-ide-engine
- cabal v2-install hie
- cabal v2-install hoogle
- hoogle generate
- popd
+ - uses: actions/checkout@v
2
+ -
uses: actions/setup-haskell@v1.1.4
+ with:
+ 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
- name: Build
- run: cabal
v2-
build
- - name:
Run tests
- run: cabal
v2-
test
+ run: cabal build
+ - name:
Test
+ run: cabal test