-
Notifications
You must be signed in to change notification settings - Fork 43
50 lines (41 loc) · 1.08 KB
/
ci.yml
File metadata and controls
50 lines (41 loc) · 1.08 KB
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
47
48
49
50
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
name: GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc: ["9.4.8", "9.6.7", "9.8.4", "9.10.3", "9.12.2"]
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: latest
- name: Configure
run: |
cat > cabal.project <<EOF
packages:
.
examples/
dataframe-persistent/
dataframe-hasktorch/
EOF
- name: Freeze
run: cabal freeze
- name: Cache
uses: actions/cache@v4
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}-
- name: Build all packages
run: cabal build all
- name: Test all packages
run: cabal test all