-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 760 Bytes
/
Copy pathci.yml
File metadata and controls
40 lines (31 loc) · 760 Bytes
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
name: CI
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- main
jobs:
build-test:
name: Build and test
runs-on: [runs-on, runner=2cpu-linux-x64, "run-id=${{ github.run_id }}"]
strategy:
fail-fast: false
matrix:
ghc-version:
- 9.6.6
cabal-version:
- 3.12.1.0
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc-version }}
cabal-version: ${{ matrix.cabal-version }}
- name: Build dependencies
run: cabal build --only-dependencies all -j
- name: Build project
run: cabal build all -j
- name: Test
run: cabal test all -j