Skip to content

Commit ecbc29b

Browse files
workflow
1 parent 15b2991 commit ecbc29b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Haskell-CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- 'master'
10+
schedule:
11+
- cron: 0 0 * * *
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
linux:
19+
name: Haskell-CI - Linux - ${{ matrix.ghc-version }}
20+
21+
strategy:
22+
matrix:
23+
ghc-version: [latest, 9.12, 9.10, 9.8, 9.6]
24+
os: [ubuntu-24.04]
25+
fail-fast: false
26+
27+
runs-on: ${{ matrix.os }}
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: haskell-actions/setup@v2
32+
with:
33+
ghc-version: ${{matrix.ghc-version}}
34+
- uses: actions/cache/restore@v4
35+
with:
36+
key: ${{ matrix.os }}-${{ matrix.ghc-version }}-${{ github.sha }}
37+
path: ~/.cabal/store
38+
restore-keys: ${{ matrix.os }}-${{ matrix.ghc-version }}-
39+
- run: cabal build all
40+
- run: cabal test all
41+
- run: cabal haddock all
42+
- uses: actions/cache/save@v4
43+
with:
44+
key: ${{ matrix.os }}-${{ matrix.ghc-version }}-${{ github.sha }}
45+
path: ~/.cabal/store

0 commit comments

Comments
 (0)