-
Notifications
You must be signed in to change notification settings - Fork 119
46 lines (43 loc) · 1.25 KB
/
haskell-ci-new.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Haskell-ci-new
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-18.04]
compiler: [ 7.0.4, 7.2.2, 7.4.1, 7.4.2, 7.6.3, 7.8.4, 7.10.3 ]
matrix:
os: [ ubuntu-20.04 ]
compiler: [ 8.0.2, 8.4.1, 8.4.2, 8.4.3, 8.4.4,
8.6.1, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.8.1,
8.8.2, 8.8.3, 8.8.4, 8.10.1, 8.10.2, 8.10.4,
8.10.7, 9.0.1, 9.2.4, 9.6.1, 9.6.4 ]
steps:
- name: Get Haskell
id: haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.compiler }}
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
id: cache
with:
path: |
./dist-newstyle
${{ steps.haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- name: Build
run: cabal build
- name: Test
run: cabal test