@@ -4,49 +4,7 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
build :
7
- strategy :
8
- fail-fast : false
9
- matrix :
10
- ghc : ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.5', '9.4.5', '9.6.1', '9.8.2', '9.10.1']
11
- os : ['ubuntu-latest', 'macos-latest']
12
- runs-on : ${{ matrix.os }}
13
-
14
- name : GHC ${{ matrix.ghc }} on ${{ matrix.os }}
15
- steps :
16
-
17
- - uses : actions/checkout@v3
18
-
19
- - uses : haskell/actions/setup@v2
20
- with :
21
- ghc-version : ${{ matrix.ghc }}
22
- cabal-version : ' 3.10.3.0'
23
-
24
- - name : Cache
25
- uses : actions/cache@v3
26
- env :
27
- cache-name : cache-cabal
28
- with :
29
- path : ~/.cabal
30
- key : ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
31
- restore-keys : |
32
- ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-
33
- ${{ runner.os }}-${{ matrix.ghc }}-build-
34
- ${{ runner.os }}-${{ matrix.ghc }}-
35
- ${{ runner.os }}
36
-
37
- - name : Install dependencies
38
- run : |
39
- cabal update
40
- cabal build --only-dependencies --enable-tests --enable-benchmarks
41
-
42
- - name : Build
43
- run : cabal build --enable-tests --enable-benchmarks all
44
-
45
- - name : Run tests
46
- # We don't run hlint tests, because different versions of hlint have different suggestions, and we don't want to worry about satisfying them all.
47
- run : cabal test --enable-tests -f-hlint all
48
-
49
- - if : matrix.ghc != '8.4.4'
50
- # docs aren't built on ghc 8.4.4 because some dependency docs don't build on older GHCs
51
- name : Build Docs
52
- run : cabal haddock
7
+ uses : reflex-frp/reflex-community/.github/workflows/haskell.yml
8
+ with :
9
+ matrix-ghc : " ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.5', '9.4.5', '9.6.1', '9.8.2', '9.10.1']"
10
+ matrix-os : " ['ubuntu-latest', 'macos-latest']"
0 commit comments