Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Commit e126f3f

Browse files
committed
Build all GHC 8.* version on GitHub Actions
1 parent a27dbbd commit e126f3f

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
# Trigger the workflow on push or pull request, but only for the
4+
# master branch
5+
on:
6+
pull_request:
7+
push:
8+
branches: [master]
9+
10+
jobs:
11+
build:
12+
name: ghc ${{ matrix.versions.ghc }}
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
versions:
17+
- ghc: '8.0.2'
18+
cabal: '2.4'
19+
- ghc: '8.2.2'
20+
cabal: '2.4'
21+
- ghc: '8.4.4'
22+
cabal: '2.4'
23+
- ghc: '8.6.5'
24+
cabal: '3.2'
25+
- ghc: '8.8.3'
26+
cabal: '3.2'
27+
- ghc: '8.10.1'
28+
cabal: '3.2'
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
if: >-
33+
github.event.action == 'opened' ||
34+
github.event.action == 'synchronize' ||
35+
github.event.ref == 'refs/heads/master'
36+
37+
- uses: actions/setup-haskell@v1
38+
name: Setup Haskell
39+
with:
40+
ghc-version: ${{ matrix.versions.ghc }}
41+
cabal-version: ${{ matrix.versions.cabal }}
42+
43+
- uses: actions/cache@v1
44+
name: Cache ~/.cabal/store
45+
with:
46+
path: ~/.cabal/store
47+
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-cabal
48+
49+
- name: Build
50+
run: |
51+
cabal v2-update
52+
cabal v2-build --enable-tests
53+
54+
- name: Test
55+
run: |
56+
cabal v2-test --enable-tests

0 commit comments

Comments
 (0)